From c7416046e26009a0ed2d003df6007005656ac22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 28 Aug 2007 13:40:56 +0000 Subject: [PATCH] Revert r28603 and add the correct fix svn path=/trunk/; revision=28615 --- reactos/include/reactos/typedefs_host.h | 10 ++++++++++ reactos/lib/rtl/bitmap.c | 1 + 2 files changed, 11 insertions(+) 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) {