Skip to content

Commit

Permalink
Fix Emscripten compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaskosunen committed Oct 30, 2024
1 parent f1a6410 commit 7bcc30c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scn/impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ SCN_GCC_POP
#if SCN_DISABLE_LOCALE
#define SCN_XLOCALE SCN_XLOCALE_DISABLED
#elif (!defined(__ANDROID_API__) || __ANDROID_API__ >= 28) && \
SCN_HAS_INCLUDE(<xlocale.h>)
!defined(__EMSCRIPTEN__) && SCN_HAS_INCLUDE(<xlocale.h>)
#include <xlocale.h>
#define SCN_XLOCALE SCN_XLOCALE_POSIX

#elif defined(_MSC_VER)
#define SCN_XLOCALE SCN_XLOCALE_MSVC

#elif defined(__GLIBC__) && !defined(__ANDROID_API__)
#elif defined(__GLIBC__) && !defined(__ANDROID_API__) && \
!defined(__EMSCRIPTEN__)
// glibc

#include <features.h>
Expand Down

0 comments on commit 7bcc30c

Please sign in to comment.