Fix Mac build.
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
#include "lz11.h"
|
#include "lz11.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <malloc.h>
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char magic[4] = {'C', 'B', 'M', 'D'};
|
char magic[4] = {'C', 'B', 'M', 'D'};
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ u16 pack_color(u8 r, u8 g, u8 b, u8 a, PixelFormat format) {
|
|||||||
a >>= 4;
|
a >>= 4;
|
||||||
return r << 12 | g << 8 | b << 4 | a;
|
return r << 12 | g << 8 | b << 4 | a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
u8* load_image(const char* image, u32 width, u32 height) {
|
u8* load_image(const char* image, u32 width, u32 height) {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
u8* convert_to_cgfx(const std::string image, u32 width, u32 height, u32* size) {
|
u8* convert_to_cgfx(const std::string image, u32 width, u32 height, u32* size) {
|
||||||
|
|||||||
Reference in New Issue
Block a user