From fc47bde23bfe15cf3abfe6e2a2a75e863cf43d8a Mon Sep 17 00:00:00 2001 From: bjorn Date: Sun, 20 Mar 2022 01:44:18 -0700 Subject: [PATCH] Compile as C11 instead of C99; --- CMakeLists.txt | 2 +- README.md | 2 +- Tupfile.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b5f475b..647a9c2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -372,7 +372,7 @@ endif() set_target_properties(lovr PROPERTIES C_VISIBILITY_PRESET ${LOVR_SYMBOL_VISIBILITY}) -set_target_properties(lovr PROPERTIES C_STANDARD 99) +set_target_properties(lovr PROPERTIES C_STANDARD 11) target_include_directories(lovr PRIVATE src src/modules src/lib/stdatomic) target_link_libraries(lovr ${LOVR_GLFW} diff --git a/README.md b/README.md index bf8acd0c..2c077d1d 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Features - **Cross-Platform** - Runs on Windows, Mac, Linux, Android, WebXR. - **Cross-Device** - Supports Vive/Index, Oculus Rift/Quest, Pico, Windows MR, and has a VR simulator. - **Beginner-friendly** - Simple VR scenes can be created in just a few lines of Lua. -- **Fast** - Writen in C99 and scripted with LuaJIT, includes optimized single-pass stereo rendering. +- **Fast** - Writen in C11 and scripted with LuaJIT, includes optimized single-pass stereo rendering. - **Asset Import** - Supports 3D models (glTF, OBJ), skeletal animation, HDR textures, cubemaps, fonts, etc. - **Spatialized Audio** - Audio is automatically spatialized using HRTFs. - **Vector Library** - Efficient first-class support for 3D vectors, quaternions, and matrices. diff --git a/Tupfile.lua b/Tupfile.lua index 58336fed..2f338ce8 100644 --- a/Tupfile.lua +++ b/Tupfile.lua @@ -77,7 +77,7 @@ cc = 'clang' cxx = 'clang++' cflags = { - '-std=c99', + '-std=c11', '-pedantic', '-Wall', '-Wextra',