[vlc-commits] config.h must be included first and always

Rémi Denis-Courmont git at videolan.org
Tue May 3 17:38:38 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May  3 18:37:58 2011 +0300| [396ba414069cd425e282a2bb091e7fb3cabc5c88] | committer: Rémi Denis-Courmont

config.h must be included first and always

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

 modules/video_filter/atmo/AtmoCalculations.cpp     |    5 +++++
 .../video_filter/atmo/AtmoChannelAssignment.cpp    |    5 +++++
 .../video_filter/atmo/AtmoClassicConnection.cpp    |    3 +++
 modules/video_filter/atmo/AtmoConfig.cpp           |    4 ++++
 modules/video_filter/atmo/AtmoConnection.cpp       |    5 +++++
 modules/video_filter/atmo/AtmoDefs.h               |    1 -
 .../video_filter/atmo/AtmoDmxSerialConnection.cpp  |    5 +++++
 modules/video_filter/atmo/AtmoDynData.cpp          |    4 ++++
 .../video_filter/atmo/AtmoExternalCaptureInput.cpp |    6 +++++-
 modules/video_filter/atmo/AtmoInput.cpp            |    5 +++++
 modules/video_filter/atmo/AtmoLiveView.cpp         |    4 ++++
 modules/video_filter/atmo/AtmoMultiConnection.cpp  |    4 ++++
 modules/video_filter/atmo/AtmoOutputFilter.cpp     |    4 ++++
 modules/video_filter/atmo/AtmoPacketQueue.cpp      |    4 ++++
 modules/video_filter/atmo/AtmoThread.cpp           |    5 +++++
 modules/video_filter/atmo/AtmoTools.cpp            |    4 ++++
 modules/video_filter/atmo/AtmoZoneDefinition.cpp   |    4 ++++
 modules/video_filter/atmo/DmxTools.cpp             |    4 ++++
 modules/video_filter/atmo/FnordlichtConnection.cpp |    3 +++
 modules/video_filter/atmo/MoMoConnection.cpp       |    3 +++
 modules/video_filter/atmo/atmo.cpp                 |    8 ++++----
 21 files changed, 84 insertions(+), 6 deletions(-)

diff --git a/modules/video_filter/atmo/AtmoCalculations.cpp b/modules/video_filter/atmo/AtmoCalculations.cpp
index 66b0a26..daba816 100644
--- a/modules/video_filter/atmo/AtmoCalculations.cpp
+++ b/modules/video_filter/atmo/AtmoCalculations.cpp
@@ -5,6 +5,11 @@
  *
  * $Id$
  */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
diff --git a/modules/video_filter/atmo/AtmoChannelAssignment.cpp b/modules/video_filter/atmo/AtmoChannelAssignment.cpp
index 7acb133..f79c9aa 100644
--- a/modules/video_filter/atmo/AtmoChannelAssignment.cpp
+++ b/modules/video_filter/atmo/AtmoChannelAssignment.cpp
@@ -6,6 +6,11 @@
  *
  * $Id$
  */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <string.h>
 #include <stdlib.h>
 #include <malloc.h>
diff --git a/modules/video_filter/atmo/AtmoClassicConnection.cpp b/modules/video_filter/atmo/AtmoClassicConnection.cpp
index 74f1f67..629c28d 100644
--- a/modules/video_filter/atmo/AtmoClassicConnection.cpp
+++ b/modules/video_filter/atmo/AtmoClassicConnection.cpp
@@ -7,6 +7,9 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include "AtmoDefs.h"
 #include "AtmoClassicConnection.h"
diff --git a/modules/video_filter/atmo/AtmoConfig.cpp b/modules/video_filter/atmo/AtmoConfig.cpp
index 1003ff0..84bb008 100644
--- a/modules/video_filter/atmo/AtmoConfig.cpp
+++ b/modules/video_filter/atmo/AtmoConfig.cpp
@@ -7,6 +7,10 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <stdio.h>
 #include <string.h>
 
diff --git a/modules/video_filter/atmo/AtmoConnection.cpp b/modules/video_filter/atmo/AtmoConnection.cpp
index f61c982..5bc11ba 100644
--- a/modules/video_filter/atmo/AtmoConnection.cpp
+++ b/modules/video_filter/atmo/AtmoConnection.cpp
@@ -6,6 +6,11 @@
  *
  * $Id$
  */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <string.h>
 #include "AtmoConnection.h"
 
diff --git a/modules/video_filter/atmo/AtmoDefs.h b/modules/video_filter/atmo/AtmoDefs.h
index 739978a..ace8172 100644
--- a/modules/video_filter/atmo/AtmoDefs.h
+++ b/modules/video_filter/atmo/AtmoDefs.h
@@ -13,7 +13,6 @@
 
 #if defined(__LIBVLC__)
 
-#   include "config.h"
 #   include <vlc_common.h>
 
 /* some things need to be changed if this code is used inside VideoLan Filter Module */
diff --git a/modules/video_filter/atmo/AtmoDmxSerialConnection.cpp b/modules/video_filter/atmo/AtmoDmxSerialConnection.cpp
index bc47035..b4d4627 100644
--- a/modules/video_filter/atmo/AtmoDmxSerialConnection.cpp
+++ b/modules/video_filter/atmo/AtmoDmxSerialConnection.cpp
@@ -8,6 +8,11 @@
  *
  * $Id$
  */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "AtmoDefs.h"
 #include "AtmoDmxSerialConnection.h"
 #include "DmxTools.h"
diff --git a/modules/video_filter/atmo/AtmoDynData.cpp b/modules/video_filter/atmo/AtmoDynData.cpp
index b15eac2..99de31b 100644
--- a/modules/video_filter/atmo/AtmoDynData.cpp
+++ b/modules/video_filter/atmo/AtmoDynData.cpp
@@ -8,6 +8,10 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "AtmoDynData.h"
 
 #if defined(_ATMO_VLC_PLUGIN_)
diff --git a/modules/video_filter/atmo/AtmoExternalCaptureInput.cpp b/modules/video_filter/atmo/AtmoExternalCaptureInput.cpp
index ac8aff8..ff36d3b 100644
--- a/modules/video_filter/atmo/AtmoExternalCaptureInput.cpp
+++ b/modules/video_filter/atmo/AtmoExternalCaptureInput.cpp
@@ -6,7 +6,11 @@
  * See the README.txt file for copyright information and how to reach the author(s).
  *
  * $Id$
-*/
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include "AtmoExternalCaptureInput.h"
 #include "AtmoTools.h"
diff --git a/modules/video_filter/atmo/AtmoInput.cpp b/modules/video_filter/atmo/AtmoInput.cpp
index fc0ba66..bfc4826 100644
--- a/modules/video_filter/atmo/AtmoInput.cpp
+++ b/modules/video_filter/atmo/AtmoInput.cpp
@@ -7,6 +7,11 @@
  *
  * $Id$
  */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "AtmoDefs.h"
 #include "AtmoInput.h"
 
diff --git a/modules/video_filter/atmo/AtmoLiveView.cpp b/modules/video_filter/atmo/AtmoLiveView.cpp
index d4512ec..b418ab1 100644
--- a/modules/video_filter/atmo/AtmoLiveView.cpp
+++ b/modules/video_filter/atmo/AtmoLiveView.cpp
@@ -8,6 +8,10 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #define __STDC_FORMAT_MACROS 1
 
 #include "AtmoDefs.h"
diff --git a/modules/video_filter/atmo/AtmoMultiConnection.cpp b/modules/video_filter/atmo/AtmoMultiConnection.cpp
index e648491..8ea3eac 100644
--- a/modules/video_filter/atmo/AtmoMultiConnection.cpp
+++ b/modules/video_filter/atmo/AtmoMultiConnection.cpp
@@ -7,6 +7,10 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "AtmoDefs.h"
 #include "AtmoMultiConnection.h"
 
diff --git a/modules/video_filter/atmo/AtmoOutputFilter.cpp b/modules/video_filter/atmo/AtmoOutputFilter.cpp
index 8d8030c..aeab6fd 100644
--- a/modules/video_filter/atmo/AtmoOutputFilter.cpp
+++ b/modules/video_filter/atmo/AtmoOutputFilter.cpp
@@ -9,6 +9,10 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <string.h>
 #include "AtmoOutputFilter.h"
 
diff --git a/modules/video_filter/atmo/AtmoPacketQueue.cpp b/modules/video_filter/atmo/AtmoPacketQueue.cpp
index b7d5156..77ba399 100644
--- a/modules/video_filter/atmo/AtmoPacketQueue.cpp
+++ b/modules/video_filter/atmo/AtmoPacketQueue.cpp
@@ -9,6 +9,10 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "AtmoDefs.h"
 #include "AtmoPacketQueue.h"
 
diff --git a/modules/video_filter/atmo/AtmoThread.cpp b/modules/video_filter/atmo/AtmoThread.cpp
index f916cba..e8a6baf 100644
--- a/modules/video_filter/atmo/AtmoThread.cpp
+++ b/modules/video_filter/atmo/AtmoThread.cpp
@@ -5,6 +5,11 @@
  *
  * $Id$
  */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "AtmoThread.h"
 
 #if defined(_ATMO_VLC_PLUGIN_)
diff --git a/modules/video_filter/atmo/AtmoTools.cpp b/modules/video_filter/atmo/AtmoTools.cpp
index e96bb32..2219a5e 100644
--- a/modules/video_filter/atmo/AtmoTools.cpp
+++ b/modules/video_filter/atmo/AtmoTools.cpp
@@ -6,6 +6,10 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "AtmoTools.h"
 #include "AtmoDynData.h"
 #include "AtmoLiveView.h"
diff --git a/modules/video_filter/atmo/AtmoZoneDefinition.cpp b/modules/video_filter/atmo/AtmoZoneDefinition.cpp
index df39642..2ab2fcd 100644
--- a/modules/video_filter/atmo/AtmoZoneDefinition.cpp
+++ b/modules/video_filter/atmo/AtmoZoneDefinition.cpp
@@ -1,4 +1,8 @@
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "AtmoDefs.h"
 
 #if defined (WIN32)
diff --git a/modules/video_filter/atmo/DmxTools.cpp b/modules/video_filter/atmo/DmxTools.cpp
index fe4c066..b56b55b 100644
--- a/modules/video_filter/atmo/DmxTools.cpp
+++ b/modules/video_filter/atmo/DmxTools.cpp
@@ -6,6 +6,10 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
diff --git a/modules/video_filter/atmo/FnordlichtConnection.cpp b/modules/video_filter/atmo/FnordlichtConnection.cpp
index 4f026e5..dfbe84d 100644
--- a/modules/video_filter/atmo/FnordlichtConnection.cpp
+++ b/modules/video_filter/atmo/FnordlichtConnection.cpp
@@ -22,6 +22,9 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include "AtmoDefs.h"
 #include "FnordlichtConnection.h"
diff --git a/modules/video_filter/atmo/MoMoConnection.cpp b/modules/video_filter/atmo/MoMoConnection.cpp
index 97c21c5..7d04128 100644
--- a/modules/video_filter/atmo/MoMoConnection.cpp
+++ b/modules/video_filter/atmo/MoMoConnection.cpp
@@ -7,6 +7,9 @@
  * $Id$
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include "AtmoDefs.h"
 #include "MoMoConnection.h"
diff --git a/modules/video_filter/atmo/atmo.cpp b/modules/video_filter/atmo/atmo.cpp
index b8b6f7d..008c3e2 100644
--- a/modules/video_filter/atmo/atmo.cpp
+++ b/modules/video_filter/atmo/atmo.cpp
@@ -21,6 +21,10 @@
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 /*****************************************************************************
 * Preamble
 *****************************************************************************/
@@ -30,10 +34,6 @@
 #include <math.h>                                            /* sin(), cos() */
 #include <assert.h>
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
 // #define __ATMO_DEBUG__
 
 // [:Zs]+$



More information about the vlc-commits mailing list