aboutsummaryrefslogtreecommitdiffstats
path: root/version_info.c
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2010-05-15 21:38:36 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2010-05-15 21:38:36 +0000
commit6f6f3e2d95359768da0920ae05c4760a45be6a62 (patch)
tree3cb8402fab2631d792c5bf069e97e5516f2ec025 /version_info.c
parent82e49d973cf0ad415a15fa1822878556571fb693 (diff)
Bruno Matos <bruno.matos@gmail.com>
In version_info.c file, if we put the Python include in first place we remove the warning/error "_POSIX_C_SOURCE redefined", as in this article: http://bytes.com/topic/python/answers/30009-warning-_posix_c_source-redefined . I had problems with CMake build. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32824 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'version_info.c')
-rw-r--r--version_info.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/version_info.c b/version_info.c
index 6695b5a0dc..77d961261a 100644
--- a/version_info.c
+++ b/version_info.c
@@ -26,6 +26,10 @@
# include "config.h"
#endif
+#ifdef HAVE_PYTHON
+#include <Python.h> /* to get the Python version number (PY_VERSION) */
+#endif
+
#include <glib.h>
#include <stdlib.h>
@@ -33,10 +37,6 @@
#include <string.h>
#include <errno.h>
-#ifdef HAVE_PYTHON
-#include <Python.h> /* to get the Python version number (PY_VERSION) */
-#endif
-
#ifdef HAVE_LIBZ
#include <zlib.h> /* to get the libz version number */
#endif