diff options
author | Jörg Mayer <jmayer@loplof.de> | 2010-05-15 21:38:36 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2010-05-15 21:38:36 +0000 |
commit | e309a6ad5ac6c56a6acccd2197ed78e94ee71c69 (patch) | |
tree | 3cb8402fab2631d792c5bf069e97e5516f2ec025 /version_info.c | |
parent | e4eecc5215b8c6521931a15951b71a522ba826bd (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.
svn path=/trunk/; revision=32824
Diffstat (limited to 'version_info.c')
-rw-r--r-- | version_info.c | 8 |
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 |