for hexcoder

This commit is contained in:
van Hauser 2019-09-13 17:05:20 +02:00
parent 7856f09799
commit 4e87c6af02
2 changed files with 24 additions and 0 deletions

View File

@ -21,6 +21,7 @@ Version ++2.54d (dev):
FIFO or disk partition
- reducing duplicate code in afl-fuzz
- persistent mode for QEMU
- removed compile warnings from python internal stuff
- updated documentation

View File

@ -454,8 +454,31 @@ extern s32
/* Python stuff */
#ifdef USE_PYTHON
// because Python sets stuff it should not ...
#ifdef _POSIX_C_SOURCE
#define _SAVE_POSIX_C_SOURCE _POSIX_C_SOURCE
#undef _POSIX_C_SOURCE
#endif
#ifdef _XOPEN_SOURCE
#define _SAVE_XOPEN_SOURCE _XOPEN_SOURCE
#undef _XOPEN_SOURCE
#endif
#include <Python.h>
#ifdef _SAVE_POSIX_C_SOURCE
#ifdef _POSIX_C_SOURCE
#undef _POSIX_C_SOURCE
#endif
#define _POSIX_C_SOURCE _SAVE_POSIX_C_SOURCE
#endif
#ifdef _SAVE_XOPEN_SOURCE
#ifdef _XOPEN_SOURCE
#undef _XOPEN_SOURCE
#endif
#define _XOPEN_SOURCE _SAVE_XOPEN_SOURCE
#endif
extern PyObject* py_module;
enum {