24 lines
714 B
Diff
24 lines
714 B
Diff
From d1ec1705381f3684bf85666b3cea4978efb4fbac Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=C3=89rico=20Porto?= <ericoporto2008@gmail.com>
|
|
Date: Sat, 9 Aug 2025 17:39:11 -0300
|
|
Subject: [PATCH] Common: fix strcasecmp/strncasecmp fails on Emscripten clang
|
|
build
|
|
|
|
---
|
|
Common/util/string_compat.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/Common/util/string_compat.c b/Common/util/string_compat.c
|
|
index 2ea5d84d9fb..e126ae89d2b 100644
|
|
--- a/Common/util/string_compat.c
|
|
+++ b/Common/util/string_compat.c
|
|
@@ -17,6 +17,9 @@
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "core/platform.h"
|
|
+#if !AGS_PLATFORM_OS_WINDOWS
|
|
+#include <strings.h>
|
|
+#endif
|
|
#include "debug/assert.h"
|
|
|
|
char *ags_strlwr(char *s)
|