aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorratalaika <ratalaika@gmail.com>2014-11-22 00:13:09 +0100
committerratalaika <ratalaika@gmail.com>2014-11-22 00:13:09 +0100
commitab05ace3ce8b999ab665194e63b8b5d03a7787ac (patch)
treeb7657d2b85f38f53d03368fe88ef54420e83bad2 /src/utils.c
parent05ccc4fd42a9ff2dfd33f13be29734bb7531d65a (diff)
downloadraylib-ab05ace3ce8b999ab665194e63b8b5d03a7787ac.tar.gz
raylib-ab05ace3ce8b999ab665194e63b8b5d03a7787ac.zip
Added first version of OS X compilation support
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index b5112111..26a44065 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -40,7 +40,7 @@
#include <stdarg.h> // Used for functions with variable number of parameters (TraceLog())
//#include <string.h> // String management functions: strlen(), strrchr(), strcmp()
-#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI)
+#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI) || defined(PLATFORM_DESKTOP_OSX)
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h" // Create PNG file
#endif
@@ -107,7 +107,7 @@ unsigned char *DecompressData(const unsigned char *data, unsigned long compSize,
return pUncomp;
}
-#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI)
+#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI) || defined(PLATFORM_DESKTOP_OSX)
// Creates a bitmap (BMP) file from an array of pixel data
// NOTE: This function is not explicitly available to raylib users
void WriteBitmap(const char *fileName, unsigned char *imgData, int width, int height)