[vlc-devel] commit: include config.h before any other include. ( Rémi Duraffort )

git version control git at videolan.org
Sat Apr 25 20:28:02 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Apr 19 19:14:26 2009 +0200| [be1646a7acb5199cf84a41f451469880b5ee736a] | committer: Rémi Duraffort 

include config.h before any other include.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=be1646a7acb5199cf84a41f451469880b5ee736a
---

 modules/access/bda/bda.c    |    9 ++++++++-
 modules/access/cdda/cdda.c  |    3 +++
 modules/access/screen/mac.c |    2 +-
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/modules/access/bda/bda.c b/modules/access/bda/bda.c
index 6cfb477..42987a4 100644
--- a/modules/access/bda/bda.c
+++ b/modules/access/bda/bda.c
@@ -23,9 +23,16 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include "bda.h"
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc_plugin.h>
 
+#include "bda.h"
+
+
 /*****************************************************************************
  * Access: local prototypes
  *****************************************************************************/
diff --git a/modules/access/cdda/cdda.c b/modules/access/cdda/cdda.c
index 63c59fa..c51ab9b 100644
--- a/modules/access/cdda/cdda.c
+++ b/modules/access/cdda/cdda.c
@@ -24,6 +24,9 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include "callback.h"
 #include "access.h"
diff --git a/modules/access/screen/mac.c b/modules/access/screen/mac.c
index 02ddb7f..5b14fdd 100644
--- a/modules/access/screen/mac.c
+++ b/modules/access/screen/mac.c
@@ -25,7 +25,6 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#import <stdlib.h>
 
 #ifdef HAVE_CONFIG_H
 # import "config.h"
@@ -36,6 +35,7 @@
 #import <ApplicationServices/ApplicationServices.h>
 #import <OpenGL/OpenGL.h>
 #import <OpenGL/gl.h>
+#import <stdlib.h>
 
 typedef int CGSConnectionRef;
 extern CGError CGSNewConnection( void *, CGSConnectionRef * );




More information about the vlc-devel mailing list