mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 19:37:04 +00:00
Mant more cmangos Cata commits applied
Commit:
This commit is contained in:
parent
6db0ba8ae9
commit
8cac2f42db
51 changed files with 964 additions and 270 deletions
|
|
@ -64,9 +64,20 @@ typedef ACE_SHLIB_HANDLE MANGOS_LIBRARY_HANDLE;
|
|||
# define MANGOS_EXPORT __declspec(dllexport)
|
||||
# define MANGOS_IMPORT __cdecl
|
||||
#else // PLATFORM != PLATFORM_WINDOWS
|
||||
# include <dlfcn.h>
|
||||
typedef void* MANGOS_LIBRARY_HANDLE;
|
||||
# define MANGOS_LOAD_LIBRARY(libname) dlopen(libname, RTLD_LAZY)
|
||||
# define MANGOS_CLOSE_LIBRARY(hlib) dlclose(hlib)
|
||||
# define MANGOS_GET_PROC_ADDR(hlib, name) dlsym(hlib, name)
|
||||
# define MANGOS_EXPORT export
|
||||
# if defined(__APPLE_CC__) && defined(BIG_ENDIAN)
|
||||
# if (defined(__ppc__) || defined(__powerpc__))
|
||||
# if PLATFORM == PLATFORM_APPLE
|
||||
# define MANGOS_SCRIPT_SUFFIX ".dylib"
|
||||
# else
|
||||
# define MANGOS_SCRIPT_SUFFIX ".so"
|
||||
# endif
|
||||
# define MANGOS_SCRIPT_PREFIX "lib"
|
||||
# if defined(__APPLE_CC__) && defined(BIG_ENDIAN) // TODO:: more work to do with byte order. Have to be rechecked after boost integration.
|
||||
# if (defined (__ppc__) || defined (__powerpc__))
|
||||
# define MANGOS_IMPORT __attribute__ ((longcall))
|
||||
# else
|
||||
# define MANGOS_IMPORT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue