shithub: cstory

Download patch

ref: 27d82e97625ba4e1b7ba4d5d98ec1c0d6972c5c7
parent: d57850d9373e5b185c97f1ab57f1c41f92c13f6b
author: Clownacy <[email protected]>
date: Wed Mar 4 19:04:47 EST 2020

Set STB_IMAGE_STATIC

Reduce global namespace clutter.

...Man, I wish other single-header-file libs had an option like this
- this is a big part of why the new miniaudio backend's been causing
so many problems lately.

--- a/src/Bitmap.cpp
+++ b/src/Bitmap.cpp
@@ -3,6 +3,7 @@
 #include <stddef.h>
 
 #define STB_IMAGE_IMPLEMENTATION
+#define STB_IMAGE_STATIC
 #define STBI_ONLY_BMP
 #define STBI_NO_LINEAR
 #include "stb_image.h"