Fix Mac build.

This commit is contained in:
Steven Smith
2015-09-20 15:39:39 -07:00
parent 18dd20de89
commit 80bfbf6f21
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -2,8 +2,8 @@
#include "lz11.h"
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
typedef struct {
char magic[4] = {'C', 'B', 'M', 'D'};
+2
View File
@@ -33,6 +33,8 @@ u16 pack_color(u8 r, u8 g, u8 b, u8 a, PixelFormat format) {
a >>= 4;
return r << 12 | g << 8 | b << 4 | a;
}
return 0;
}
u8* load_image(const char* image, u32 width, u32 height) {
+1
View File
@@ -9,6 +9,7 @@
#include <string.h>
#include <map>
#include <string>
#include <vector>
u8* convert_to_cgfx(const std::string image, u32 width, u32 height, u32* size) {