Parcourir la source

Don't include config.h from the headers - refs #297.
Missing some cases that I could not test.
Also ffmpeg/chroma.c is locked, so I can but leave it broken.
Fix is for the remaining modules is obvious and the issue is easy to detect.

Rémi Denis-Courmont il y a 17 ans
Parent
commit
42fd24d205

+ 4 - 0
Sources/VLCLibrary.m

@@ -25,6 +25,10 @@
 #import "VLCLibrary.h"
 #import "VLCLibVLCBridging.h"
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc/libvlc_structures.h>
 

+ 4 - 0
Sources/VLCMediaList.m

@@ -26,6 +26,10 @@
 #import "VLCLibrary.h"
 #import "VLCEventManager.h"
 #import "VLCLibVLCBridging.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc/libvlc.h>
 

+ 4 - 0
Sources/VLCMediaListAspect.m

@@ -26,6 +26,10 @@
 #import "VLCLibrary.h"
 #import "VLCEventManager.h"
 #import "VLCLibVLCBridging.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc/libvlc.h>
 

+ 4 - 0
Sources/VLCMediaPlayer.m

@@ -28,6 +28,10 @@
 #import "VLCEventManager.h"
 #import "VLCLibVLCBridging.h"
 #import "VLCVideoView.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 
 /* Notification Messages */

+ 4 - 0
Sources/VLCVideoLayer.m

@@ -28,6 +28,10 @@
 #import "VLCVideoCommon.h"
 
 /* Libvlc */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc/libvlc.h>
 

+ 4 - 0
Sources/VLCVideoView.m

@@ -28,6 +28,10 @@
 #import "VLCVideoCommon.h"
 
 /* Libvlc */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc/libvlc.h>
 

+ 4 - 0
VLC_Prefix.pch

@@ -7,6 +7,10 @@
     #import <Cocoa/Cocoa.h>
 #endif
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc/libvlc_structures.h>
 #include <vlc/libvlc.h>