summaryrefslogtreecommitdiff
path: root/gfx/models/stb_image.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-11-07 16:41:25 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-07 16:41:25 +0000
commit91dc82dc65c15c29faa48c69681487142dc1ab35 (patch)
tree719d314a7141152004905ad6169ccc81d245f2b3 /gfx/models/stb_image.cpp
parentBump GCC version (diff)
downloadilt-91dc82dc65c15c29faa48c69681487142dc1ab35.tar.bz2
ilt-91dc82dc65c15c29faa48c69681487142dc1ab35.tar.xz
ilt-91dc82dc65c15c29faa48c69681487142dc1ab35.zip
Compile stb wrapper in C++ mode
Diffstat (limited to 'gfx/models/stb_image.cpp')
-rw-r--r--gfx/models/stb_image.cpp9
1 files changed, 9 insertions, 0 deletions
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