os_utils: fix non portable use of "defined"

see https://github.com/openscenegraph/OpenSceneGraph/issues/458
This commit is contained in:
Philippe Renon
2018-01-25 16:49:05 +01:00
parent 753d86d6d8
commit 13d88c7fec

View File

@@ -15,10 +15,11 @@
extern "C" {
#define USE_POSIX_SPAWN defined(__APPLE__)
//#define USE_POSIX_SPAWN true
#ifdef __APPLE__
#define USE_POSIX_SPAWN 1
#endif
#if USE_POSIX_SPAWN
#ifdef USE_POSIX_SPAWN
#include <spawn.h>
#include <sys/wait.h>