Browse Source

Fix Mac embedded resources

tags/v0.6.1
Andrew Belt 6 years ago
parent
commit
dd5b0a6fbb
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      compile.mk
  2. +1
    -1
      include/util/common.hpp

+ 1
- 1
compile.mk View File

@@ -82,5 +82,5 @@ ifdef ARCH_WIN
endif endif
ifdef ARCH_MAC ifdef ARCH_MAC
# Apple makes this needlessly complicated, so just generate a C file with an array. # Apple makes this needlessly complicated, so just generate a C file with an array.
xxd -i $< | $(CC) -c -o $@ -xc -
xxd -i $< | $(CC) $(MAC_SDK_FLAGS) -c -o $@ -xc -
endif endif

+ 1
- 1
include/util/common.hpp View File

@@ -71,7 +71,7 @@ to get its size in bytes.
// Use output from `xxd -i` // Use output from `xxd -i`
#define BINARY(sym) extern unsigned char sym[]; extern unsigned int sym##len #define BINARY(sym) extern unsigned char sym[]; extern unsigned int sym##len
#define BINARY_START(sym) ((void*) sym) #define BINARY_START(sym) ((void*) sym)
#define BINARY_END(sym) ((void*) sym + sym##len)
#define BINARY_END(sym) ((void*) sym + sym##_len)
#define BINARY_SIZE(sym) (sym##len) #define BINARY_SIZE(sym) (sym##len)
#else #else
#define BINARY(sym) extern char _binary_##sym##_start, _binary_##sym##_end, _binary_##sym##_size #define BINARY(sym) extern char _binary_##sym##_start, _binary_##sym##_end, _binary_##sym##_size


Loading…
Cancel
Save