Yum, abusing private headers
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 26 Apr 2009 08:45:06 +0000 (11:45 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 26 Apr 2009 08:45:06 +0000 (11:45 +0300)
src/Makefile.am
src/control/mediacontrol_audio_video.c
src/control/playlist.c

index a3e732a..059b4d4 100644 (file)
@@ -174,8 +174,7 @@ libvlc_win32_rc.$(OBJEXT): $(top_builddir)/share/libvlc_win32_rc.rc
 libvlc_la_SOURCES = $(SOURCES_libvlc_control)
 libvlc_la_LIBADD = `$(VLC_CONFIG) -libs libvlc` \
        libvlccore.la ../compat/libcompat.la
-libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` \
-       -DMODULE_STRING=\"control\"
+libvlc_la_CFLAGS = `$(VLC_CONFIG) --cflags libvlc`
 libvlc_la_LDFLAGS = $(AM_LDFLAGS) `$(VLC_CONFIG) --ldflags libvlc` \
        -version-info 4:0:2 \
        -export-symbols $(srcdir)/libvlc.sym
index 7647538..4cc984f 100644 (file)
@@ -40,6 +40,7 @@
 #include <errno.h>                                                 /* ENOMEM */
 #include <stdio.h>
 #include <ctype.h>
+#define __LIBVLC__ /* WTF? */
 #include "../video_output/vout_control.h"
 
 #ifdef HAVE_UNISTD_H
index 4f354ad..5e0ae92 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <assert.h>
 
+#define __LIBVLC__
 #include "../playlist/playlist_internal.h"
 
 #define PL (libvlc_priv (p_instance->p_libvlc_int)->p_playlist)