From 6a1b491844ef088ec433ef02231db0700aeeafea Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Fri, 1 Dec 2023 16:05:37 -0800 Subject: [PATCH] Hopefully fix parameters of setenv compat function --- .vscode/settings.json | 19 ++++++++++++++++++- win32compat.h | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b94b33b..88abb19 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,6 +12,23 @@ "semaphore": "cpp", "valarray": "cpp", "ratio": "cpp", - "algorithm": "cpp" + "algorithm": "cpp", + "charconv": "cpp", + "optional": "cpp", + "format": "cpp", + "system_error": "cpp", + "array": "cpp", + "functional": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "utility": "cpp", + "__bit_reference": "cpp", + "__node_handle": "cpp", + "atomic": "cpp", + "bitset": "cpp", + "deque": "cpp", + "__memory": "cpp", + "locale": "cpp", + "vector": "cpp" } } \ No newline at end of file diff --git a/win32compat.h b/win32compat.h index 8b78ac8..e8f6a76 100644 --- a/win32compat.h +++ b/win32compat.h @@ -2,7 +2,7 @@ #ifdef _WIN32 #include -inline void setenv(char const *variable, char const *value, char replace) { +inline void setenv(const char *variable, const char *value, char replace) { if (replace || getenv(variable) == NULL || getenv(variable) == "") { if (value == NULL) { _putenv_s(variable, "");