From 0d68b1afb57b8c868477da25d7b83bc76d39c268 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 2 Jul 2020 12:30:43 +0100 Subject: [PATCH] libsysprof-capture: Use _WIN32 rather than G_OS_WIN32 They should be equivalent. Signed-off-by: Philip Withnall Helps: #40 --- src/libsysprof-capture/sysprof-capture-util.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/libsysprof-capture/sysprof-capture-util.c b/src/libsysprof-capture/sysprof-capture-util.c index f1563074..83ee8c69 100644 --- a/src/libsysprof-capture/sysprof-capture-util.c +++ b/src/libsysprof-capture/sysprof-capture-util.c @@ -61,7 +61,7 @@ #include #include -#ifdef G_OS_WIN32 +#ifdef _WIN32 # include # define WIN32_LEAN_AND_MEAN # include @@ -70,7 +70,7 @@ #include "sysprof-capture-util-private.h" #include "sysprof-macros.h" -#ifdef G_OS_WIN32 +#ifdef _WIN32 static G_LOCK_DEFINE (_sysprof_io_sync); #endif @@ -81,7 +81,7 @@ size_t if SYSPROF_UNLIKELY (pgsz == 0) { -#ifdef G_OS_WIN32 +#ifdef _WIN32 SYSTEM_INFO system_info; GetSystemInfo (&system_info); pgsz = system_info.dwPageSize; @@ -99,7 +99,7 @@ ssize_t size_t count, off_t offset) { -#ifdef G_OS_WIN32 +#ifdef _WIN32 ssize_t ret = -1; G_LOCK (_sysprof_io_sync); @@ -121,7 +121,7 @@ ssize_t size_t count, off_t offset) { -#ifdef G_OS_WIN32 +#ifdef _WIN32 ssize_t ret = -1; G_LOCK (_sysprof_io_sync); @@ -142,7 +142,7 @@ ssize_t const void *buf, size_t count) { -#ifdef G_OS_WIN32 +#ifdef _WIN32 ssize_t ret = -1; G_LOCK (_sysprof_io_sync); @@ -160,7 +160,7 @@ ssize_t int32_t (_sysprof_getpid) (void) { -#ifdef G_OS_WIN32 +#ifdef _WIN32 return _getpid (); #else return getpid ();