This commit is contained in:
Araq 2015-08-25 22:44:30 +02:00
commit c0ad9a96ce

View file

@ -160,9 +160,15 @@ __clang__
#if defined(__BORLANDC__) || defined(__WATCOMC__) || \ #if defined(__BORLANDC__) || defined(__WATCOMC__) || \
defined(__POCC__) || defined(_MSC_VER) || defined(WIN32) || defined(_WIN32) defined(__POCC__) || defined(_MSC_VER) || defined(WIN32) || defined(_WIN32)
/* these compilers have a fastcall so use it: */ /* these compilers have a fastcall so use it: */
# define N_NIMCALL(rettype, name) rettype __fastcall name # ifdef __TINYC__
# define N_NIMCALL_PTR(rettype, name) rettype (__fastcall *name) # define N_NIMCALL(rettype, name) rettype __attribute((__fastcall)) name
# define N_RAW_NIMCALL __fastcall # define N_NIMCALL_PTR(rettype, name) rettype (__attribute((__fastcall)) *name)
# define N_RAW_NIMCALL __attribute((__fastcall))
# else
# define N_NIMCALL(rettype, name) rettype __fastcall name
# define N_NIMCALL_PTR(rettype, name) rettype (__fastcall *name)
# define N_RAW_NIMCALL __fastcall
# endif
#else #else
# define N_NIMCALL(rettype, name) rettype name /* no modifier */ # define N_NIMCALL(rettype, name) rettype name /* no modifier */
# define N_NIMCALL_PTR(rettype, name) rettype (*name) # define N_NIMCALL_PTR(rettype, name) rettype (*name)