From c28ecd0fb15f5c18d6e04f9a2fd1d80ac8dd0a27 Mon Sep 17 00:00:00 2001 From: Sauw Ming Date: Fri, 23 Jul 2010 04:27:32 +0000 Subject: [PATCH] Re #1104: Fixed iPhone OS version detection in os_auto.h.in git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3240 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/compat/os_auto.h.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pjlib/include/pj/compat/os_auto.h.in b/pjlib/include/pj/compat/os_auto.h.in index 35ccf0c33..6fe3276e0 100644 --- a/pjlib/include/pj/compat/os_auto.h.in +++ b/pjlib/include/pj/compat/os_auto.h.in @@ -172,9 +172,11 @@ /* Append ".local" suffix to the system's hostname? */ #if defined(PJ_DARWINOS) && PJ_DARWINOS!=0 # include "TargetConditionals.h" -# if defined(__IPHONE_4_0) && \ - __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0 -# define PJ_GETHOSTNAME_APPEND_LOCAL_SUFFIX 1 +# if TARGET_OS_IPHONE +# include "Availability.h" +# ifdef __IPHONE_4_0 +# define PJ_GETHOSTNAME_APPEND_LOCAL_SUFFIX 1 +# endif # endif #endif