From 384a2770ae60ea58fea209cd9d0033fc76d7bbbd Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Wed, 15 May 2024 16:59:12 +0200 Subject: [PATCH] defining G_OS_UNIX isn't worth the hassle --- src/frontend/libslirp/glib/glib.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/frontend/libslirp/glib/glib.h b/src/frontend/libslirp/glib/glib.h index b880aac6..08a43072 100644 --- a/src/frontend/libslirp/glib/glib.h +++ b/src/frontend/libslirp/glib/glib.h @@ -9,10 +9,8 @@ #include #include -#ifdef _WIN32 +#if defined(WIN32) || defined(_WIN32) || defined(_MSC_VER) #define G_OS_WIN32 1 -#else -#define G_OS_UNIX 1 #endif #define G_LITTLE_ENDIAN 0 @@ -117,7 +115,6 @@ gchar* g_string_free(GString* string, gboolean free_segment); void g_string_append_printf(GString* gstr, const gchar* format, ...); gchar* g_strstr_len(const gchar* haystack, int len, const gchar* needle); gchar* g_strdup(const gchar* str); -#define g_strlcpy(dst, src, size) strlcpy(dst, src, size) #ifdef _MSC_VER #define g_ascii_strcasecmp(a, b) stricmp(a, b) #else