You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2012/08/13 17:46:58 UTC
svn commit: r1372477 - /subversion/trunk/subversion/libsvn_subr/sysinfo.c
Author: julianfoad
Date: Mon Aug 13 15:46:58 2012
New Revision: 1372477
URL: http://svn.apache.org/viewvc?rev=1372477&view=rev
Log:
Avoid warnings about testing an undefined macro 'SVN_HAVE_MACOS_PLIST'.
A follow-up to r1371942.
* subversion/libsvn_subr/sysinfo.c
Everywhere, use '#ifdef' or 'defined()' with 'SVN_HAVE_MACOS_PLIST'.
Modified:
subversion/trunk/subversion/libsvn_subr/sysinfo.c
Modified: subversion/trunk/subversion/libsvn_subr/sysinfo.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/sysinfo.c?rev=1372477&r1=1372476&r2=1372477&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/sysinfo.c (original)
+++ subversion/trunk/subversion/libsvn_subr/sysinfo.c Mon Aug 13 15:46:58 2012
@@ -49,7 +49,7 @@
#include <sys/utsname.h>
#endif
-#if SVN_HAVE_MACOS_PLIST
+#ifdef SVN_HAVE_MACOS_PLIST
#include <CoreFoundation/CoreFoundation.h>
#endif
@@ -63,7 +63,7 @@ static const char * win32_release_name(a
static const char * win32_shared_libs(apr_pool_t *pool);
#endif /* WIN32 */
-#if SVN_HAVE_MACOS_PLIST
+#ifdef SVN_HAVE_MACOS_PLIST
static const char *macos_release_name(apr_pool_t *pool);
#endif /* SVN_HAVE_MACOS_PLIST */
@@ -86,7 +86,7 @@ svn_sysinfo__release_name(apr_pool_t *po
{
#ifdef WIN32
return win32_release_name(pool);
-#elif SVN_HAVE_MACOS_PLIST
+#elif defined(SVN_HAVE_MACOS_PLIST)
return macos_release_name(pool);
#else
return NULL;
@@ -473,7 +473,7 @@ win32_shared_libs(apr_pool_t *pool)
}
#endif /* WIN32 */
-#if SVN_HAVE_MACOS_PLIST
+#ifdef SVN_HAVE_MACOS_PLIST
/* Load the SystemVersion.plist or ServerVersion.plist file into a
property list. Set SERVER to TRUE if the file read was
ServerVersion.plist. */