aboutsummaryrefslogtreecommitdiff
path: root/src/framework
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-09 17:46:07 -0600
committermegamage <none@none>2009-03-09 17:46:07 -0600
commit0a6ef039b2586707c0fcc6a6cf5a601ad1c341d9 (patch)
tree6336a786e64db6f270f794e3959673e36507eea4 /src/framework
parent7b43f68ff78bb626b5c842f1cf904b7639131da1 (diff)
[7420] Not set cdecl calling convention for x64 platform for Unic/Linux. Author: VladimirMangos
This will prevent generation "warning: 'cdecl' attribute ignored" --HG-- branch : trunk
Diffstat (limited to 'src/framework')
-rw-r--r--src/framework/Platform/Define.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/framework/Platform/Define.h b/src/framework/Platform/Define.h
index 7a7bdcab419..59c2418c745 100644
--- a/src/framework/Platform/Define.h
+++ b/src/framework/Platform/Define.h
@@ -57,6 +57,8 @@
# define TRINITY_GET_PROC_ADDR dlsym
# if defined(__APPLE_CC__) && defined(BIG_ENDIAN)
# define TRINITY_IMPORT __attribute__ ((longcall))
+# elif defined(__x86_64__)
+# define TRINITY_IMPORT
# else
# define TRINITY_IMPORT __attribute__ ((cdecl))
# endif //__APPLE_CC__ && BIG_ENDIAN