From 13d88c7fec93e1601bfb52b5c87889ae18e035ab Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Thu, 25 Jan 2018 16:49:05 +0100 Subject: [PATCH] os_utils: fix non portable use of "defined" see https://github.com/openscenegraph/OpenSceneGraph/issues/458 --- src/osg/os_utils.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/osg/os_utils.cpp b/src/osg/os_utils.cpp index 7689c122f..1bb70c2fc 100644 --- a/src/osg/os_utils.cpp +++ b/src/osg/os_utils.cpp @@ -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 #include