Linux doesn't like the ISO stuff

This commit is contained in:
louist103 2024-04-07 14:28:21 -04:00
parent 372dc5cca2
commit 5f11afce5e
1 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,10 @@
#include <libultraship/libultra/types.h> #include <libultraship/libultra/types.h>
#include "soh/Enhancements/cosmetics/CosmeticsEditor.h" #include "soh/Enhancements/cosmetics/CosmeticsEditor.h"
#ifdef _MSC_VER
#define strdup _strdup
#endif
namespace UIWidgets { namespace UIWidgets {
// MARK: - Layout Helper // MARK: - Layout Helper
@ -46,7 +50,7 @@ namespace UIWidgets {
currentLineLength++; currentLineLength++;
} }
return _strdup(newText.c_str()); return strdup(newText.c_str());
} }
char* WrappedText(const std::string& text, unsigned int charactersPerLine) { char* WrappedText(const std::string& text, unsigned int charactersPerLine) {