From 70dfb6130042cea53956c2044d409a55fb814d2f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 20 Oct 2015 14:06:29 +1100 Subject: Cleanup: remove _POSIX_C_SOURCE undefine --- source/blender/python/generic/bpy_threads.c | 5 ----- source/blender/python/intern/bpy_interface.c | 6 ------ source/blender/python/intern/gpu.c | 5 ----- source/gameengine/Ketsji/KX_PythonInit.cpp | 3 --- 4 files changed, 19 deletions(-) diff --git a/source/blender/python/generic/bpy_threads.c b/source/blender/python/generic/bpy_threads.c index 63a47ff0b20..fbc145660f3 100644 --- a/source/blender/python/generic/bpy_threads.c +++ b/source/blender/python/generic/bpy_threads.c @@ -27,11 +27,6 @@ * these functions are slightly different from the original Python API, * don't throw SIGABRT even if the thread state is NULL. */ -/* grr, python redefines */ -#ifdef _POSIX_C_SOURCE -# undef _POSIX_C_SOURCE -#endif - #include #include "BLI_utildefines.h" diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index 04e49f96aa6..d10816b809f 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -29,12 +29,6 @@ * be accesses from scripts. */ - -/* grr, python redefines */ -#ifdef _POSIX_C_SOURCE -# undef _POSIX_C_SOURCE -#endif - #include #ifdef WIN32 diff --git a/source/blender/python/intern/gpu.c b/source/blender/python/intern/gpu.c index bc15e109901..65b2e97f461 100644 --- a/source/blender/python/intern/gpu.c +++ b/source/blender/python/intern/gpu.c @@ -32,11 +32,6 @@ * from blender materials. */ -/* python redefines */ -#ifdef _POSIX_C_SOURCE -#undef _POSIX_C_SOURCE -#endif - #include #include "DNA_scene_types.h" diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp index 48d8be55120..37768c75ba5 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.cpp +++ b/source/gameengine/Ketsji/KX_PythonInit.cpp @@ -37,9 +37,6 @@ #endif #ifdef WITH_PYTHON -# ifdef _POSIX_C_SOURCE -# undef _POSIX_C_SOURCE -# endif # ifdef _XOPEN_SOURCE # undef _XOPEN_SOURCE # endif -- cgit v1.2.3