diff options
Diffstat (limited to 'src/utils/env.cpp')
-rw-r--r-- | src/utils/env.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/utils/env.cpp b/src/utils/env.cpp index a47a72c30..5ecbda7b9 100644 --- a/src/utils/env.cpp +++ b/src/utils/env.cpp @@ -1,9 +1,9 @@ /* - * The ManaPlus Client + * The ManaVerse Client * Copyright (C) 2011-2020 The ManaPlus Developers - * Copyright (C) 2020-2023 The ManaVerse Developers + * Copyright (C) 2020-2025 The ManaVerse Developers * - * This file is part of The ManaPlus Client. + * This file is part of The ManaVerse Client. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,14 +29,14 @@ void updateEnv() { -#if defined(WIN32) || defined(__APPLE__) +#if defined(_WIN32) || defined(__APPLE__) if (config.getBoolValue("centerwindow")) setEnv("SDL_VIDEO_CENTERED", "1"); else setEnv("SDL_VIDEO_CENTERED", "0"); -#endif // defined(WIN32) || defined(__APPLE__) +#endif // defined(_WIN32) || defined(__APPLE__) -#ifndef WIN32 +#ifndef _WIN32 const int vsync = settings.options.test.empty() ? config.getIntValue("vsync") : 1; // __GL_SYNC_TO_VBLANK is nvidia variable. @@ -54,20 +54,20 @@ void updateEnv() default: break; } -#endif // WIN32 +#endif // _WIN32 } void setEnv(const char *const name, const char *const value) { if ((name == nullptr) || (value == nullptr)) return; -#ifdef WIN32 +#ifdef _WIN32 if (putenv(const_cast<char*>((std::string(name) + "=" + value).c_str()))) -#else // WIN32 +#else // _WIN32 if (setenv(name, value, 1) != 0) -#endif // WIN32 +#endif // _WIN32 { logger->log("setenv failed: %s=%s", name, value); } |