Skip to content

Commit

Permalink
Fixed compile error under Windows if winapifamily.h is unavailable (r…
Browse files Browse the repository at this point in the history
…egression of fd842b6).
  • Loading branch information
dmitrykos authored and ktmf01 committed May 23, 2023
1 parent c8e6f73 commit 6571cbb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/share/win_utf8_io/win_utf8_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6571cbb

Please sign in to comment.