aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordmitrykos <dmitrykos@neutroncode.com>2023-05-22 20:50:43 +0300
committerMartijn van Beurden <mvanb1@gmail.com>2023-05-23 12:05:58 +0200
commit6571cbbf170a64885227d60a3d80540c7a4455fb (patch)
treeedc4d9806f8d76f91fe92a34ea629c1ea299fd42
parentc8e6f7372cd0acd0bfc49609ebd711e0d754dd2f (diff)
downloadflac-6571cbbf170a64885227d60a3d80540c7a4455fb.tar.gz
Fixed compile error under Windows if winapifamily.h is unavailable (regression of fd842b6a3bacac9e47504ca4d4fb611fab014fa2).
-rw-r--r--src/share/win_utf8_io/win_utf8_io.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/share/win_utf8_io/win_utf8_io.c b/src/share/win_utf8_io/win_utf8_io.c
index 18921748..4896a362 100644
--- a/src/share/win_utf8_io/win_utf8_io.c
+++ b/src/share/win_utf8_io/win_utf8_io.c
@@ -40,9 +40,12 @@
#define UTF8_BUFFER_SIZE 32768
/* detect whether it is Windows APP (UWP) or standard Win32 envionment */
-#if defined(WINAPI_FAMILY_PARTITION) &&\
- WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
- #define FLAC_WINDOWS_APP 1
+#ifdef WINAPI_FAMILY_PARTITION
+ #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
+ #define FLAC_WINDOWS_APP 1
+ #else
+ #define FLAC_WINDOWS_APP 0
+ #endif
#else
#define FLAC_WINDOWS_APP 0
#endif