26 |
|
|
27 |
#ifdef _WIN32 |
#ifdef _WIN32 |
28 |
|
|
|
# ifdef _DEBUG |
|
|
# define TMP_DEF_FLAG |
|
|
# undef _DEBUG |
|
|
# endif |
|
29 |
# include <python.h> |
# include <python.h> |
30 |
# ifdef TMP_DEF_FLAG |
|
|
# undef TMP_DEF_FLAG |
|
|
# define _DEBUG |
|
|
# endif |
|
31 |
# define ESYS_MALLOC PyMem_Malloc |
# define ESYS_MALLOC PyMem_Malloc |
32 |
# define ESYS_FREE PyMem_Free |
# define ESYS_FREE PyMem_Free |
33 |
# define ESYS_REALLOC PyMem_Realloc |
# define ESYS_REALLOC PyMem_Realloc |
34 |
|
|
35 |
#else |
#else |
36 |
|
|
37 |
# include <malloc.h> |
# include <malloc.h> |
38 |
# define ESYS_MALLOC malloc |
|
39 |
# define ESYS_FREE free |
# define ESYS_MALLOC ::malloc |
40 |
# define ESYS_REALLOC realloc |
# define ESYS_FREE ::free |
41 |
|
# define ESYS_REALLOC ::realloc |
42 |
|
|
43 |
#endif |
#endif |
44 |
|
|