From 91dc82dc65c15c29faa48c69681487142dc1ab35 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 7 Nov 2021 16:41:25 +0000 Subject: Compile stb wrapper in C++ mode --- gfx/models/stb_image.c | 8 -------- gfx/models/stb_image.cpp | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 gfx/models/stb_image.c create mode 100644 gfx/models/stb_image.cpp diff --git a/gfx/models/stb_image.c b/gfx/models/stb_image.c deleted file mode 100644 index a839b61..0000000 --- a/gfx/models/stb_image.c +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef TIDY -# define STB_IMAGE_IMPLEMENTATION -# pragma GCC diagnostic ignored "-Wsign-compare" -# ifndef __clang__ -# pragma GCC diagnostic ignored "-Wunused-but-set-variable" -# endif -# include "stb_image.h" -#endif diff --git a/gfx/models/stb_image.cpp b/gfx/models/stb_image.cpp new file mode 100644 index 0000000..1daf279 --- /dev/null +++ b/gfx/models/stb_image.cpp @@ -0,0 +1,9 @@ +#ifndef TIDY +# define STB_IMAGE_IMPLEMENTATION +# pragma GCC diagnostic ignored "-Wsign-compare" +# pragma GCC diagnostic ignored "-Wimplicit-fallthrough" +# ifndef __clang__ +# pragma GCC diagnostic ignored "-Wunused-but-set-variable" +# endif +# include "stb_image.h" +#endif -- cgit v1.2.3