aports/community/flatbuffers/locale-headers.patch
2026-01-16 09:16:54 +00:00

14 lines
636 B
Diff

diff --git a/include/flatbuffers/base.h b/include/flatbuffers/base.h
index 1d2ab585..af820f8e 100644
--- a/include/flatbuffers/base.h
+++ b/include/flatbuffers/base.h
@@ -270,7 +270,7 @@ namespace flatbuffers {
// strtoull_l} on platforms that support them.
#if (defined(_MSC_VER) && _MSC_VER >= 1800) || \
(defined(__ANDROID__) && defined(__ANDROID_API__) && __ANDROID_API__>= 26) || \
- (defined(_XOPEN_VERSION) && (_XOPEN_VERSION >= 700)) && \
+ (defined(__GLIBC__) && defined(_XOPEN_VERSION) && (_XOPEN_VERSION >= 700)) && \
!defined(__Fuchsia__)
#define FLATBUFFERS_LOCALE_INDEPENDENT 1
#else