[vlc-commits] upnp: Ensure config.h is included first

Hugo Beauzée-Luyssen git at videolan.org
Mon May 11 18:38:31 CEST 2015


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon May 11 18:28:36 2015 +0200| [038cdddb5f5fea96182db52b797e9246a7ddde19] | committer: Hugo Beauzée-Luyssen

upnp: Ensure config.h is included first

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

 modules/services_discovery/upnp.cpp |    4 ----
 modules/services_discovery/upnp.hpp |    4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 4ae9f58..097a92b 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -28,10 +28,6 @@
 
 #define __STDC_CONSTANT_MACROS 1
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
 #include "upnp.hpp"
 
 #include <vlc_access.h>
diff --git a/modules/services_discovery/upnp.hpp b/modules/services_discovery/upnp.hpp
index 7174b28..11e3a5a 100644
--- a/modules/services_discovery/upnp.hpp
+++ b/modules/services_discovery/upnp.hpp
@@ -26,6 +26,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vector>
 #include <string>
 



More information about the vlc-commits mailing list