mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 10:37:02 +00:00
[9449] Fixes for the Solaris platform.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
c8e45058a6
commit
f40f564bd6
6 changed files with 50 additions and 3 deletions
|
|
@ -45,6 +45,8 @@
|
|||
#define G3D_LINUX
|
||||
#elif defined(__APPLE__)
|
||||
#define G3D_OSX
|
||||
#elif defined(sun) || defined(__sun__)
|
||||
#define G3D_SOLARIS
|
||||
#else
|
||||
#error Unknown platform
|
||||
#endif
|
||||
|
|
@ -102,6 +104,22 @@
|
|||
# define G3D_CHECK_VPRINTF_ARGS __attribute__((__format__(__printf__, 1, 0)))
|
||||
#endif
|
||||
|
||||
#ifdef G3D_SOLARIS
|
||||
# define G3D_DEPRECATED __attribute__((__deprecated__))
|
||||
|
||||
# ifndef __cdecl
|
||||
# define __cdecl __attribute__((cdecl))
|
||||
# endif
|
||||
|
||||
# ifndef __stdcall
|
||||
# define __stdcall __attribute__((stdcall))
|
||||
# endif
|
||||
|
||||
# define G3D_CHECK_PRINTF_METHOD_ARGS __attribute__((__format__(__printf__, 2, 3)))
|
||||
# define G3D_CHECK_VPRINTF_METHOD_ARGS __attribute__((__format__(__printf__, 2, 0)))
|
||||
# define G3D_CHECK_PRINTF_ARGS __attribute__((__format__(__printf__, 1, 2)))
|
||||
# define G3D_CHECK_VPRINTF_ARGS __attribute__((__format__(__printf__, 1, 0)))
|
||||
#endif
|
||||
|
||||
#ifdef G3D_OSX
|
||||
#ifndef __GNUC__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue