summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/os_info_iphone.m
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2011-03-02 10:53:24 +0000
committerLiong Sauw Ming <ming@teluu.com>2011-03-02 10:53:24 +0000
commita93760edc931856f1697a44fe5ba5a9108999c87 (patch)
tree47bef9ce4b108611cd2e66a88a70ac090c77c221 /pjlib/src/pj/os_info_iphone.m
parentd5409dc8f12262768c777844f5abee2fa77c3429 (diff)
Re #1202: Fixed compilation preprocessor for os_info so that it's more robust across various device and simulator SDKs.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3436 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/os_info_iphone.m')
-rw-r--r--pjlib/src/pj/os_info_iphone.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/pjlib/src/pj/os_info_iphone.m b/pjlib/src/pj/os_info_iphone.m
index 8d6ba976..adc6e554 100644
--- a/pjlib/src/pj/os_info_iphone.m
+++ b/pjlib/src/pj/os_info_iphone.m
@@ -17,7 +17,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifdef TARGET_IPHONE_SIMULATOR == 0
+#include "TargetConditionals.h"
+
+#if !defined TARGET_IPHONE_SIMULATOR || TARGET_IPHONE_SIMULATOR == 0
#include <pj/os.h>
#include <pj/string.h>