Merge pull request #461 from filnet/issue_458

os_utils: fix non portable use of "defined"
This commit is contained in:
OpenSceneGraph git repository 2018-01-27 09:17:30 +00:00 committed by GitHub
commit 03977b5619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>