- Define NTSYSAPI and NTSYSCALLAPI Modified: trunk/reactos/w32api/include/ddk/winddk.h _____
Modified: trunk/reactos/w32api/include/ddk/winddk.h --- trunk/reactos/w32api/include/ddk/winddk.h 2005-09-04 23:18:34 UTC (rev 17648) +++ trunk/reactos/w32api/include/ddk/winddk.h 2005-09-04 23:26:35 UTC (rev 17649) @@ -38,6 +38,7 @@
#define DDKFASTAPI __fastcall #define DDKCDECLAPI __cdecl
+/* FIXME: REMOVE THIS UNCOMPATIBLE CRUFT!!! */ #if defined(_NTOSKRNL_) #ifndef NTOSAPI #define NTOSAPI DECL_EXPORT @@ -82,6 +83,18 @@ # 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 */