From 5a39a207e4b04bd0383463d797864d00203d7383 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 21 Jun 2018 18:27:45 -0400 Subject: [PATCH] Fix BINARY typo on Mac --- include/util/common.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/util/common.hpp b/include/util/common.hpp index 63a7aa49..535259c3 100644 --- a/include/util/common.hpp +++ b/include/util/common.hpp @@ -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)