From 771f00231841509f3eacf0e6c705d09659ef5164 Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Tue, 14 Jan 2025 16:21:54 -0800 Subject: [PATCH] Update both C and C++ to 17, and make them consistent across targets --- .vscode/c_cpp_properties.json | 12 ++++++------ build/premake5.lua | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 69fbcd4..0932e96 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -14,8 +14,8 @@ "GRAPHICS_API_OPENGL_33", "PLATFORM_DESKTOP" ], - "cStandard": "c99", - "cppStandard": "c++14", + "cStandard": "c17", + "cppStandard": "c++17", "intelliSenseMode": "gcc-x64" }, { @@ -36,8 +36,8 @@ "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks" ], "compilerPath": "/usr/bin/clang", - "cStandard": "c11", - "cppStandard": "c++14", + "cStandard": "c17", + "cppStandard": "c++17", "intelliSenseMode": "clang-x64" }, { @@ -55,8 +55,8 @@ "PLATFORM_DESKTOP" ], "compilerPath": "/usr/bin/clang", - "cStandard": "c11", - "cppStandard": "c++14", + "cStandard": "c17", + "cppStandard": "c++17", "intelliSenseMode": "clang-x64" } diff --git a/build/premake5.lua b/build/premake5.lua index 49c23b5..91155dc 100644 --- a/build/premake5.lua +++ b/build/premake5.lua @@ -167,7 +167,7 @@ if (downloadRaylib) then links {"raylib"} - cdialect "C99" + cdialect "C17" cppdialect "C++17" includedirs {raylib_dir .. "/src" }