mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[7420] Not set cdecl calling convention for x64 platform for Unic/Linux.
This will prevent generation "warning: 'cdecl' attribute ignored"
This commit is contained in:
parent
4dad8f40d0
commit
8bb451c85c
2 changed files with 3 additions and 1 deletions
|
|
@ -55,6 +55,8 @@
|
||||||
# define MANGOS_GET_PROC_ADDR dlsym
|
# define MANGOS_GET_PROC_ADDR dlsym
|
||||||
# if defined(__APPLE_CC__) && defined(BIG_ENDIAN)
|
# if defined(__APPLE_CC__) && defined(BIG_ENDIAN)
|
||||||
# define MANGOS_IMPORT __attribute__ ((longcall))
|
# define MANGOS_IMPORT __attribute__ ((longcall))
|
||||||
|
# elif defined(__x86_64__)
|
||||||
|
# define MANGOS_IMPORT
|
||||||
# else
|
# else
|
||||||
# define MANGOS_IMPORT __attribute__ ((cdecl))
|
# define MANGOS_IMPORT __attribute__ ((cdecl))
|
||||||
# endif //__APPLE_CC__ && BIG_ENDIAN
|
# endif //__APPLE_CC__ && BIG_ENDIAN
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7419"
|
#define REVISION_NR "7420"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue