From 8bb451c85cae5416d7ff8f70f7d51e8f66ed0cdf Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Mon, 9 Mar 2009 10:07:41 +0300 Subject: [PATCH] [7420] Not set cdecl calling convention for x64 platform for Unic/Linux. This will prevent generation "warning: 'cdecl' attribute ignored" --- src/framework/Platform/Define.h | 2 ++ src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/framework/Platform/Define.h b/src/framework/Platform/Define.h index 5602bb365..831849369 100644 --- a/src/framework/Platform/Define.h +++ b/src/framework/Platform/Define.h @@ -55,6 +55,8 @@ # define MANGOS_GET_PROC_ADDR dlsym # if defined(__APPLE_CC__) && defined(BIG_ENDIAN) # define MANGOS_IMPORT __attribute__ ((longcall)) +# elif defined(__x86_64__) +# define MANGOS_IMPORT # else # define MANGOS_IMPORT __attribute__ ((cdecl)) # endif //__APPLE_CC__ && BIG_ENDIAN diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b22640c2f..8c833b0df 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7419" + #define REVISION_NR "7420" #endif // __REVISION_NR_H__