REVIEWED: Old pragma formating

This commit is contained in:
Ray 2023-08-09 10:00:26 +02:00
parent 03ecf2202e
commit 42cfabc670
3 changed files with 31 additions and 28 deletions

View file

@ -227,17 +227,20 @@ typedef struct tagBITMAPINFOHEADER {
#define QOA_MALLOC RL_MALLOC #define QOA_MALLOC RL_MALLOC
#define QOA_FREE RL_FREE #define QOA_FREE RL_FREE
#if defined(_MSC_VER ) // par shapes has 2 warnings on windows, so disable them just fof this file #if defined(_MSC_VER) // Disable some MSVC warning
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4018) #pragma warning(disable : 4018)
#pragma warning(disable : 4267) #pragma warning(disable : 4267)
#pragma warning(disable : 4244) #pragma warning(disable : 4244)
#endif #endif
#define QOA_IMPLEMENTATION #define QOA_IMPLEMENTATION
#include "external/qoa.h" // QOA loading and saving functions #include "external/qoa.h" // QOA loading and saving functions
#include "external/qoaplay.c" // QOA stream playing helper functions #include "external/qoaplay.c" // QOA stream playing helper functions
#if defined(_MSC_VER)
#pragma warning(pop) // Disable MSVC warning suppression
#endif
#endif #endif
#if defined(SUPPORT_FILEFORMAT_FLAC) #if defined(SUPPORT_FILEFORMAT_FLAC)
@ -254,7 +257,7 @@ typedef struct tagBITMAPINFOHEADER {
#define JARXM_MALLOC RL_MALLOC #define JARXM_MALLOC RL_MALLOC
#define JARXM_FREE RL_FREE #define JARXM_FREE RL_FREE
#if defined(_MSC_VER ) // jar_xm has warnings on windows, so disable them just for this file #if defined(_MSC_VER) // Disable some MSVC warning
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4244) #pragma warning(disable : 4244)
#endif #endif
@ -263,7 +266,7 @@ typedef struct tagBITMAPINFOHEADER {
#include "external/jar_xm.h" // XM loading functions #include "external/jar_xm.h" // XM loading functions
#if defined(_MSC_VER) #if defined(_MSC_VER)
#pragma warning( pop ) #pragma warning(pop) // Disable MSVC warning suppression
#endif #endif
#endif #endif

View file

@ -101,7 +101,7 @@
#define PAR_REALLOC(T, BUF, N) ((T*)RL_REALLOC(BUF, sizeof(T)*(N))) #define PAR_REALLOC(T, BUF, N) ((T*)RL_REALLOC(BUF, sizeof(T)*(N)))
#define PAR_FREE RL_FREE #define PAR_FREE RL_FREE
#if defined(_MSC_VER ) // par shapes has 2 warnings on windows, so disable them just fof this file #if defined(_MSC_VER) // Disable some MSVC warning
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4244) #pragma warning(disable : 4244)
#pragma warning(disable : 4305) #pragma warning(disable : 4305)
@ -110,10 +110,9 @@
#define PAR_SHAPES_IMPLEMENTATION #define PAR_SHAPES_IMPLEMENTATION
#include "external/par_shapes.h" // Shapes 3d parametric generation #include "external/par_shapes.h" // Shapes 3d parametric generation
#if defined(_MSC_VER ) // disable MSVC warning suppression for par shapes #if defined(_MSC_VER)
#pragma warning( pop ) #pragma warning(pop) // Disable MSVC warning suppression
#endif #endif
#endif #endif
#if defined(_WIN32) #if defined(_WIN32)

View file

@ -162,15 +162,16 @@
#define QOI_MALLOC RL_MALLOC #define QOI_MALLOC RL_MALLOC
#define QOI_FREE RL_FREE #define QOI_FREE RL_FREE
#if defined(_MSC_VER ) // qoi has warnings on windows, so disable them just for this file #if defined(_MSC_VER) // Disable some MSVC warning
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4267) #pragma warning(disable : 4267)
#endif #endif
#define QOI_IMPLEMENTATION #define QOI_IMPLEMENTATION
#include "external/qoi.h" #include "external/qoi.h"
#if defined(_MSC_VER) #if defined(_MSC_VER)
#pragma warning( pop ) #pragma warning(pop) // Disable MSVC warning suppression
#endif #endif
#endif #endif