diff --git a/reactos/include/reactos/typedefs_host.h b/reactos/include/reactos/typedefs_host.h index 11504342472..39caeef7b67 100644 --- a/reactos/include/reactos/typedefs_host.h +++ b/reactos/include/reactos/typedefs_host.h @@ -12,6 +12,16 @@ #include #include +#ifndef __fastcall +#define __fastcall __attribute__((fastcall)) +#endif +#ifndef __cdecl +#define __cdecl __attribute__((cdecl)) +#endif +#ifndef __stdcall +#define __stdcall __attribute__((stdcall)) +#endif + #define UNIMPLEMENTED { printf("%s unimplemented\n", __FUNCTION__); exit(1); } #define ASSERT(x) { if (!(x)) { printf("Assertion " #x " at %s:%d failed\n", __FILE__, __LINE__); exit(1); } } #define DPRINT if (0) printf diff --git a/reactos/lib/rtl/bitmap.c b/reactos/lib/rtl/bitmap.c index ec10b158026..feb742e0054 100644 --- a/reactos/lib/rtl/bitmap.c +++ b/reactos/lib/rtl/bitmap.c @@ -36,6 +36,7 @@ static const signed char NTDLL_mostSignificant[16] = { static int +__cdecl NTDLL_RunSortFn(const void *lhs, const void *rhs) {