[9449] Fixes for the Solaris platform.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Zooey Aurora 2010-02-25 04:57:19 +03:00 committed by VladimirMangos
parent c8e45058a6
commit f40f564bd6
6 changed files with 50 additions and 3 deletions

View file

@ -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__