From 0fe509f4b328ab66fa91f017b63c192b5c433308 Mon Sep 17 00:00:00 2001 From: pionere Date: Sat, 30 Sep 2023 20:33:35 +0200 Subject: [PATCH] fix win98 build --- Source/storm/storm_cfg.cpp | 6 +++--- tools/patcher/storm/storm_cfg.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/storm/storm_cfg.cpp b/Source/storm/storm_cfg.cpp index 056c5f92e86..9d619983f93 100644 --- a/Source/storm/storm_cfg.cpp +++ b/Source/storm/storm_cfg.cpp @@ -68,7 +68,7 @@ void ConfigSection::delEntry(const char* name) ConfigEntry* ConfigSection::addEntry(const char* key, const char* value) { - entries.push_back(ConfigEntry(SDL_strdup(key), SDL_strdup(value))); + entries.push_back(ConfigEntry(strdup(key), strdup(value))); return &entries.back(); } @@ -91,7 +91,7 @@ static ConfigSection* getSection(const char* name) static ConfigSection* addSection(const char* name) { - config.sections.push_back(ConfigSection(SDL_strdup(name))); + config.sections.push_back(ConfigSection(strdup(name))); return &config.sections.back(); } @@ -268,7 +268,7 @@ void setIniValue(const char* sectionName, const char* keyName, const char* value if (SDL_strcmp(value, entry->value) == 0) return; free(const_cast(entry->value)); - entry->value = SDL_strdup(value); + entry->value = strdup(value); } config.modified = true; } diff --git a/tools/patcher/storm/storm_cfg.cpp b/tools/patcher/storm/storm_cfg.cpp index 844d24324fd..de64dd14579 100644 --- a/tools/patcher/storm/storm_cfg.cpp +++ b/tools/patcher/storm/storm_cfg.cpp @@ -48,7 +48,7 @@ ConfigEntry* ConfigSection::getEntry(const char* name) ConfigEntry* ConfigSection::addEntry(const char* key, const char* value) { - entries.push_back(ConfigEntry(SDL_strdup(key), SDL_strdup(value))); + entries.push_back(ConfigEntry(strdup(key), strdup(value))); return &entries.back(); } @@ -71,7 +71,7 @@ static ConfigSection* getSection(const char* name) static ConfigSection* addSection(const char* name) { - config.sections.push_back(ConfigSection(SDL_strdup(name))); + config.sections.push_back(ConfigSection(strdup(name))); return &config.sections.back(); } @@ -248,7 +248,7 @@ void setIniValue(const char* sectionName, const char* keyName, const char* value if (SDL_strcmp(value, entry->value) == 0) return; free(const_cast(entry->value)); - entry->value = SDL_strdup(value); + entry->value = strdup(value); } config.modified = true; }