aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/os_version_info.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-06-16 01:49:44 -0700
committerGuy Harris <guy@alum.mit.edu>2017-06-16 08:50:22 +0000
commit5039d0e57635589208e1d969a57250746e422e06 (patch)
tree455ae6bfd28a26c33ee4b8cbff8bbb1534380811 /wsutil/os_version_info.c
parent63b91ad3119c64eb8fdaa67303fe37d71a01a1b0 (diff)
Change some names to reflect Apple's new UNIX-for-Macs name.
{OS_X,os_x} -> {MACOS,macos}. Change-Id: Icebea6ab566c65996ee97bacb88fac7e84ec32de Reviewed-on: https://code.wireshark.org/review/22161 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/os_version_info.c')
-rw-r--r--wsutil/os_version_info.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/wsutil/os_version_info.c b/wsutil/os_version_info.c
index cbd4025ead..4ad3986e7a 100644
--- a/wsutil/os_version_info.c
+++ b/wsutil/os_version_info.c
@@ -29,7 +29,7 @@
#include <sys/utsname.h>
#endif
-#ifdef HAVE_OS_X_FRAMEWORKS
+#ifdef HAVE_MACOS_FRAMEWORKS
#include <CoreFoundation/CoreFoundation.h>
#include <wsutil/cfutils.h>
#endif
@@ -49,7 +49,7 @@ typedef void (WINAPI *nativesi_func_ptr)(LPSYSTEM_INFO);
* from macOS (we want the macOS version, not the Darwin version, the latter
* being easy to get with uname()).
*/
-#ifdef HAVE_OS_X_FRAMEWORKS
+#ifdef HAVE_MACOS_FRAMEWORKS
/*
* Fetch a string, as a UTF-8 C string, from a dictionary, given a key.
@@ -437,7 +437,7 @@ get_os_version_info(GString *str)
* On *BSD and Darwin/macOS, it's a long string giving
* a build date, config file name, etc., etc., etc..
*/
-#ifdef HAVE_OS_X_FRAMEWORKS
+#ifdef HAVE_MACOS_FRAMEWORKS
/*
* On macOS, report the macOS version number as the OS
* version if we can, and put the Darwin information
@@ -450,7 +450,7 @@ get_os_version_info(GString *str)
/* Failure - just use the Darwin information. */
g_string_append_printf(str, "%s %s", name.sysname, name.release);
}
-#else /* HAVE_OS_X_FRAMEWORKS */
+#else /* HAVE_MACOS_FRAMEWORKS */
/*
* XXX - on Linux, are there any APIs to get the distribution
* name and version number? I think some distributions have
@@ -503,7 +503,7 @@ get_os_version_info(GString *str)
* releases.
*/
g_string_append_printf(str, "%s %s", name.sysname, name.release);
-#endif /* HAVE_OS_X_FRAMEWORKS */
+#endif /* HAVE_MACOS_FRAMEWORKS */
}
#else
g_string_append(str, "an unknown OS");