raylib/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Peter0x44 01138d6760
Add error if raylib.h is included in a C++98 program
The color macros don't work properly in C++98, because they require
aggregate initialzation, which is a C++11 feature. So, explicitly state
how to fix this issue, instead of letting the compiler give a more vague
error message like:

main.cpp:8:23: error: expected '(' for function-style cast or type construction
      ClearBackground(BLACK);
                      ^~~~~
/opt/homebrew/Cellar/raylib/4.5.0/include/raylib.h:179:35: note: expanded from macro 'BLACK'
 #define BLACK      CLITERAL(Color){ 0, 0, 0, 255 }         // Black

NOTE: Don't use this check with MSVC because by default, it reports
199711L  regardless of any C++ version passed on command line
Only passing `/Zc:__cplusplus` will make MSVC set this correctly

see: https://learn.microsoft.com/en-us/cpp/build/reference/zc-cplusplus
2023-06-01 07:03:59 +01:00
..
external UPDATED: sdefl and sinfl DEFLATE compression libraries 2023-05-30 21:12:03 +02:00
build.zig build.zig: Fix cross-compiling from Linux (#3090) 2023-05-30 21:33:01 +02:00
CMakeLists.txt Update CMakeLists.txt 2023-03-22 12:43:18 +01:00
config.h Update config.h 2023-03-15 17:51:23 +01:00
Makefile cross compilation for PLATFORM_DRM (#3091) 2023-05-30 21:34:08 +02:00
minshell.html Fixed some grammar mistakes and typos. (#2914) 2023-02-09 13:17:47 +01:00
raudio.c REVIEWED: Modules description layout 2023-05-01 14:04:22 +02:00
raylib.dll.rc Update year to 2023 2023-01-01 16:07:51 +01:00
raylib.dll.rc.data Update resource arch for 64bit #2978 2023-03-22 11:15:00 +01:00
raylib.h Add error if raylib.h is included in a C++98 program 2023-06-01 07:03:59 +01:00
raylib.ico Updated icon data 2018-09-26 16:02:42 +02:00
raylib.rc Update year to 2023 2023-01-01 16:07:51 +01:00
raylib.rc.data Update resource arch for 64bit #2978 2023-03-22 11:15:00 +01:00
raymath.h Remove trailing spaces 2023-05-08 18:57:36 +02:00
rcamera.h REVIEWED: Formating 2023-05-15 11:30:31 +02:00
rcore.c ADDED: Experimental support for OpenGL ES 3.0 -WIP- 2023-05-31 18:36:33 +02:00
rgestures.h REVIEWED: Modules description layout 2023-05-01 14:04:22 +02:00
rglfw.c Fix missing symbol when rglfw.c on BSD platforms (#2968) 2023-03-19 09:43:51 +01:00
rlgl.h ADDED: Experimental support for OpenGL ES 3.0 -WIP- 2023-05-31 18:36:33 +02:00
rmodels.c Update rmodels.c; free fileData for LoadModelAnimationsGLTF (#3065) 2023-05-15 11:24:37 +02:00
rshapes.c REVIEWED: GetCollisionRec() 2023-05-10 19:25:12 +02:00
rtext.c tweak 2023-05-18 16:14:18 +02:00
rtextures.c REVIEWED: ImageRotate() formatting 2023-05-26 14:01:19 +02:00
shell.html Fixed some grammar mistakes and typos. (#2914) 2023-02-09 13:17:47 +01:00
utils.c Added security check to file reading (memory allocations) 2023-05-22 16:08:14 +02:00
utils.h Update year to 2023 2023-01-01 16:07:51 +01:00