Browse Source

Fix BINARY typo on Mac

tags/v0.6.2
Andrew Belt 6 years ago
parent
commit
5a39a207e4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/util/common.hpp

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

@@ -69,10 +69,10 @@ to get its size in bytes.
*/
#ifdef ARCH_MAC
// 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) ((const void*) sym)
#define BINARY_END(sym) ((const void*) sym + sym##_len)
#define BINARY_SIZE(sym) (sym##len)
#define BINARY_SIZE(sym) (sym##_len)
#else
#define BINARY(sym) extern char _binary_##sym##_start, _binary_##sym##_end, _binary_##sym##_size
#define BINARY_START(sym) ((const void*) &_binary_##sym##_start)


Loading…
Cancel
Save