From: Alex Ionescu Date: Sun, 4 Sep 2005 23:26:35 +0000 (+0000) Subject: - Define NTSYSAPI and NTSYSCALLAPI X-Git-Tag: ReactOS-0.2.8~760 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=a4d8aa2194fc1d4f90c6d5650d0547da07061618 - Define NTSYSAPI and NTSYSCALLAPI svn path=/trunk/; revision=17649 --- diff --git a/reactos/w32api/include/ddk/winddk.h b/reactos/w32api/include/ddk/winddk.h index 256c87ac5dc..5c14261dac3 100644 --- a/reactos/w32api/include/ddk/winddk.h +++ b/reactos/w32api/include/ddk/winddk.h @@ -38,6 +38,7 @@ extern "C" { #define DDKFASTAPI __fastcall #define DDKCDECLAPI __cdecl +/* FIXME: REMOVE THIS UNCOMPATIBLE CRUFT!!! */ #if defined(_NTOSKRNL_) #ifndef NTOSAPI #define NTOSAPI DECL_EXPORT @@ -82,6 +83,18 @@ extern "C" { # define _DDK_DUMMYUNION_N_MEMBER(n, name) name #endif +#if !defined(_NTSYSTEM_) +#define NTSYSAPI DECLSPEC_IMPORT +#define NTSYSCALLAPI DECLSPEC_IMPORT +#else +#define NTSYSAPI +#if defined(_NTDLLBUILD_) +#define NTSYSCALLAPI +#else +#define NTSYSCALLAPI DECLSPEC_ADDRSAFE +#endif +#endif + /* ** Forward declarations */