From a5cd9c0630eeb69bc8acf9b86b1c624eedde9d8c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 19 Apr 2012 14:34:28 +0000 Subject: [PATCH] Changed #ifdef __IPHONE_4_0 to #if defined(__IPHONE_4_0) to fix error that Clang compile warning highlighted --- src/osgDB/FileUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgDB/FileUtils.cpp b/src/osgDB/FileUtils.cpp index b5950d794..bb919f381 100644 --- a/src/osgDB/FileUtils.cpp +++ b/src/osgDB/FileUtils.cpp @@ -55,7 +55,7 @@ typedef char TCHAR; #if (TARGET_OS_IPHONE) #include // workaround a bug which appears when compiling for SDK < 4.0 and for the simulator - #ifdef __IPHONE_4_0 && (__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0) + #if defined(__IPHONE_4_0) && (__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0) #define stat64 stat #else #if !TARGET_IPHONE_SIMULATOR