From 44e39c440cb218f890fc1ee50dd381398afd7f05 Mon Sep 17 00:00:00 2001 From: Antz Date: Tue, 2 Aug 2016 13:16:25 +0100 Subject: [PATCH] Port OSX fix from Zero --- src/framework/Platform/Define.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/framework/Platform/Define.h b/src/framework/Platform/Define.h index 54e8a899f..141b62e33 100644 --- a/src/framework/Platform/Define.h +++ b/src/framework/Platform/Define.h @@ -66,7 +66,11 @@ typedef ACE_SHLIB_HANDLE MANGOS_LIBRARY_HANDLE; #else // PLATFORM != PLATFORM_WINDOWS # define MANGOS_EXPORT export # if defined(__APPLE_CC__) && defined(BIG_ENDIAN) -# define MANGOS_IMPORT __attribute__ ((longcall)) +# if (defined(__ppc__) || defined(__powerpc__)) +# define MANGOS_IMPORT __attribute__ ((longcall)) +# else +# define MANGOS_IMPORT +# endif # elif defined(__x86_64__) # define MANGOS_IMPORT # else