Use DLL_EXPORT only on win
authorChristophe Mutricy <xtophe@videolan.org>
Mon, 5 Feb 2007 22:02:43 +0000 (22:02 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Mon, 5 Feb 2007 22:02:43 +0000 (22:02 +0000)
configure.ac

index 2b04bc3..fe69739 100644 (file)
@@ -5636,9 +5636,11 @@ dnl Pic and shared libvlc stuff
 dnl
 AS_IF([test "${SYS}" = "mingw32" || test "${enable_libtool}" != "no"], [
   AC_DEFINE(HAVE_SHARED_LIBVLC, 1, [Define to 1 if libvlc is built as a shared library.])
-  FILE_LIBVLC_DLL="!define LIBVLC_DLL libvlc.dll"
   VLC_ADD_PLUGINS([${BUILTINS}])
-  VLC_ADD_CPPFLAGS([libvlc],[-DDLL_EXPORT])
+  AS_IF([test "${SYS}" = "mingw32"], [
+    FILE_LIBVLC_DLL="!define LIBVLC_DLL libvlc.dll"
+    VLC_ADD_CPPFLAGS([libvlc],[-DDLL_EXPORT])
+  ])
   BUILTINS=""
 ], [
   LDFLAGS_vlc="${LDFLAGS_vlc} ${LDFLAGS_libvlc}"