]> git.sesse.net Git - vlc/commitdiff
test/headers.c: Make sure __LIBVLC__ isn't defined.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 1 Feb 2008 10:50:19 +0000 (10:50 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 1 Feb 2008 10:50:19 +0000 (10:50 +0000)
src/test/headers.c

index 986f79831b0fbd85cb51faaac8316dd95c078d30..8575c5ccfa2a31384ee95fa908cad57e404bc32c 100644 (file)
 
 #define PACKAGE "vlc"
 
+/* Because we are from src/ __LIBVLC__ is defined, but we don't want that,
+ * as we act here as a third-party program just linking to libvlc */
+#ifdef __LIBVLC__
+# undef __LIBVLC__
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc/libvlc.h>
 #include <vlc/libvlc_structures.h>