From 9aa5eb6020e8bf4488208d18e12f124f5152881f Mon Sep 17 00:00:00 2001 From: jeremyd2019 Date: Thu, 11 Nov 2021 19:40:51 -0800 Subject: [PATCH] use INCBIN_MANGLE in INCBIN_GLOBAL statement On 32-bit(x86) Windows, GCC apparently doesn't care, but Clang targeting i686-w64-windows-gnu does. --- incbin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/incbin.h b/incbin.h index 3f662e1..a1921a7 100644 --- a/incbin.h +++ b/incbin.h @@ -174,7 +174,7 @@ # define INCBIN_TYPE(...) #else # define INCBIN_SECTION ".section " INCBIN_OUTPUT_SECTION "\n" -# define INCBIN_GLOBAL(NAME) ".global " INCBIN_STRINGIZE(INCBIN_PREFIX) #NAME "\n" +# define INCBIN_GLOBAL(NAME) ".global " INCBIN_MANGLE INCBIN_STRINGIZE(INCBIN_PREFIX) #NAME "\n" # if defined(__ghs__) # define INCBIN_INT ".word " # else @@ -473,4 +473,4 @@ INCBIN_COMMON(char, NAME, FILENAME, INCBIN_BYTE "0\n") #endif -#endif \ No newline at end of file +#endif