OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PyIncludeWrapper.h
Go to the documentation of this file.
1 
2 #ifdef HAVE_CYTHON
3 
4 // XXX Cython currently conflicts with standard C library defintions.
5 // The push/pop below should hush it, for now. (needed for cython
6 // 0.15.1 and maybe other versions) FIXME someday...
7 #ifdef _GNU_SOURCE
8 #pragma push_macro("_POSIX_C_SOURCE")
9 #pragma push_macro("_XOPEN_SOURCE")
10 #undef _POSIX_C_SOURCE
11 #undef _XOPEN_SOURCE
12 #endif
13 #include <Python.h>
14 #ifdef _GNU_SOURCE
15 #pragma pop_macro("_POSIX_C_SOURCE")
16 #pragma pop_macro("_XOPEN_SOURCE")
17 #endif
18 
19 #endif /* HAVE_CYTHON */