summaryrefslogtreecommitdiff
path: root/core/src/xmake/string
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/xmake/string')
-rw-r--r--core/src/xmake/string/case.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/xmake/string/case.c b/core/src/xmake/string/case.c
index 06b98de41..0bdef51a3 100644
--- a/core/src/xmake/string/case.c
+++ b/core/src/xmake/string/case.c
@@ -42,9 +42,6 @@
# include <xlocale.h>
# elif defined(__NetBSD__)
# include <string.h>
-# endif
-#endif
-
/* //////////////////////////////////////////////////////////////////////////////////////
* globals
*/
@@ -54,6 +51,9 @@
* setlocale() is not thread-safe on Windows or Linux, so we protect it globally.
*/
static tb_spinlock_t g_locale_lock = TB_SPINLOCK_INIT;
+# endif
+#endif
+
/* //////////////////////////////////////////////////////////////////////////////////////
* private implementation