Skip to content

Commit

Permalink
REVIEWED: Old pragma formating
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Aug 9, 2023
1 parent 03ecf22 commit 42cfabc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 28 deletions.
27 changes: 15 additions & 12 deletions src/raudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down
17 changes: 8 additions & 9 deletions src/rmodels.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
15 changes: 8 additions & 7 deletions src/rtextures.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 42cfabc

Please sign in to comment.