summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-08-09 10:00:26 +0200
committerRay <[email protected]>2023-08-09 10:00:26 +0200
commit42cfabc67069fd01ee8c0b00d58862e32f0942fb (patch)
treeeda6bd62b3bc22bf69143b124bf79b37e3b0aeb9 /src
parent03ecf2202e61532bebaffc3b49941261bf967614 (diff)
downloadraylib-42cfabc67069fd01ee8c0b00d58862e32f0942fb.tar.gz
raylib-42cfabc67069fd01ee8c0b00d58862e32f0942fb.zip
REVIEWED: Old pragma formating
Diffstat (limited to 'src')
-rw-r--r--src/raudio.c27
-rw-r--r--src/rmodels.c17
-rw-r--r--src/rtextures.c15
3 files changed, 31 insertions, 28 deletions
diff --git a/src/raudio.c b/src/raudio.c
index 5f84688d..31e21c6e 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -227,17 +227,20 @@ typedef struct tagBITMAPINFOHEADER {
#define QOA_MALLOC RL_MALLOC
#define QOA_FREE RL_FREE
-#if defined(_MSC_VER ) // par shapes has 2 warnings on windows, so disable them just fof this file
-#pragma warning( push )
-#pragma warning( disable : 4018)
-#pragma warning( disable : 4267)
-#pragma warning( disable : 4244)
-#endif
-
+ #if defined(_MSC_VER) // Disable some MSVC warning
+ #pragma warning(push)
+ #pragma warning(disable : 4018)
+ #pragma warning(disable : 4267)
+ #pragma warning(disable : 4244)
+ #endif
#define QOA_IMPLEMENTATION
#include "external/qoa.h" // QOA loading and saving functions
#include "external/qoaplay.c" // QOA stream playing helper functions
+
+ #if defined(_MSC_VER)
+ #pragma warning(pop) // Disable MSVC warning suppression
+ #endif
#endif
#if defined(SUPPORT_FILEFORMAT_FLAC)
@@ -254,16 +257,16 @@ typedef struct tagBITMAPINFOHEADER {
#define JARXM_MALLOC RL_MALLOC
#define JARXM_FREE RL_FREE
- #if defined(_MSC_VER ) // jar_xm has warnings on windows, so disable them just for this file
- #pragma warning( push )
- #pragma warning( disable : 4244)
+ #if defined(_MSC_VER) // Disable some MSVC warning
+ #pragma warning(push)
+ #pragma warning(disable : 4244)
#endif
#define JAR_XM_IMPLEMENTATION
#include "external/jar_xm.h" // XM loading functions
- #if defined(_MSC_VER )
- #pragma warning( pop )
+ #if defined(_MSC_VER)
+ #pragma warning(pop) // Disable MSVC warning suppression
#endif
#endif
diff --git a/src/rmodels.c b/src/rmodels.c
index 8c7e088c..294d13c5 100644
--- a/src/rmodels.c
+++ b/src/rmodels.c
@@ -101,19 +101,18 @@
#define PAR_REALLOC(T, BUF, N) ((T*)RL_REALLOC(BUF, sizeof(T)*(N)))
#define PAR_FREE RL_FREE
-#if defined(_MSC_VER ) // par shapes has 2 warnings on windows, so disable them just fof this file
-#pragma warning( push )
-#pragma warning( disable : 4244)
-#pragma warning( disable : 4305)
-#endif
+ #if defined(_MSC_VER) // Disable some MSVC warning
+ #pragma warning(push)
+ #pragma warning(disable : 4244)
+ #pragma warning(disable : 4305)
+ #endif
#define PAR_SHAPES_IMPLEMENTATION
#include "external/par_shapes.h" // Shapes 3d parametric generation
-#if defined(_MSC_VER ) // disable MSVC warning suppression for par shapes
-#pragma warning( pop )
-#endif
-
+ #if defined(_MSC_VER)
+ #pragma warning(pop) // Disable MSVC warning suppression
+ #endif
#endif
#if defined(_WIN32)
diff --git a/src/rtextures.c b/src/rtextures.c
index 501e3fde..8a391477 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -162,16 +162,17 @@
#define QOI_MALLOC RL_MALLOC
#define QOI_FREE RL_FREE
-#if defined(_MSC_VER ) // qoi has warnings on windows, so disable them just for this file
-#pragma warning( push )
-#pragma warning( disable : 4267)
-#endif
+ #if defined(_MSC_VER) // Disable some MSVC warning
+ #pragma warning(push)
+ #pragma warning(disable : 4267)
+ #endif
+
#define QOI_IMPLEMENTATION
#include "external/qoi.h"
-#if defined(_MSC_VER )
-#pragma warning( pop )
-#endif
+ #if defined(_MSC_VER)
+ #pragma warning(pop) // Disable MSVC warning suppression
+ #endif
#endif