From 5f11afce5ef9e16522f738f738b92036dcfb9a27 Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Sun, 7 Apr 2024 14:28:21 -0400 Subject: [PATCH] Linux doesn't like the ISO stuff --- soh/soh/UIWidgets.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/soh/soh/UIWidgets.cpp b/soh/soh/UIWidgets.cpp index 6d95ae4bd..93ad1f1ef 100644 --- a/soh/soh/UIWidgets.cpp +++ b/soh/soh/UIWidgets.cpp @@ -17,6 +17,10 @@ #include #include "soh/Enhancements/cosmetics/CosmeticsEditor.h" +#ifdef _MSC_VER +#define strdup _strdup +#endif + namespace UIWidgets { // MARK: - Layout Helper @@ -46,7 +50,7 @@ namespace UIWidgets { currentLineLength++; } - return _strdup(newText.c_str()); + return strdup(newText.c_str()); } char* WrappedText(const std::string& text, unsigned int charactersPerLine) {