mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:47:45 +00:00
Ports: Add VVVVVV port
Co-Authored-By: Tim Schumacher <timschumi@gmx.de> (thanks for the line ending and assert() troubleshooting)
This commit is contained in:
parent
2a45d30302
commit
51315c0b1d
6 changed files with 204 additions and 0 deletions
25
Ports/VVVVVV/patches/0001-Change-C-standard-to-C99.patch
Normal file
25
Ports/VVVVVV/patches/0001-Change-C-standard-to-C99.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Grigoris Pavlakis <grigpavl@ece.auth.gr>
|
||||
Date: Thu, 9 Jun 2022 00:19:08 +0300
|
||||
Subject: [PATCH] Change C standard to C99
|
||||
|
||||
The originally-set C90 doesn't support the `inline` keyword, causing
|
||||
weird compile errors because isalnum() and other functions under
|
||||
ctype.h are actually #define'd as inline.
|
||||
---
|
||||
desktop_version/CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt
|
||||
index 7405c12..49d44bb 100644
|
||||
--- a/desktop_version/CMakeLists.txt
|
||||
+++ b/desktop_version/CMakeLists.txt
|
||||
@@ -27,7 +27,7 @@ endif()
|
||||
if(${CMAKE_VERSION} VERSION_LESS "3.1.3")
|
||||
message(WARNING "Your CMake version is too old; set -std=c90 -std=c++98 yourself!")
|
||||
else()
|
||||
- set(CMAKE_C_STANDARD 90)
|
||||
+ set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_C_EXTENSIONS OFF)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 98)
|
Loading…
Add table
Add a link
Reference in a new issue