Skip to content

Commit 6571cbb

Browse files
dmitrykosktmf01
authored andcommitted
Fixed compile error under Windows if winapifamily.h is unavailable (regression of fd842b6).
1 parent c8e6f73 commit 6571cbb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/share/win_utf8_io/win_utf8_io.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@
4040
#define UTF8_BUFFER_SIZE 32768
4141

4242
/* detect whether it is Windows APP (UWP) or standard Win32 envionment */
43-
#if defined(WINAPI_FAMILY_PARTITION) &&\
44-
WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
45-
#define FLAC_WINDOWS_APP 1
43+
#ifdef WINAPI_FAMILY_PARTITION
44+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
45+
#define FLAC_WINDOWS_APP 1
46+
#else
47+
#define FLAC_WINDOWS_APP 0
48+
#endif
4649
#else
4750
#define FLAC_WINDOWS_APP 0
4851
#endif

0 commit comments

Comments
 (0)