diff --git a/reactos/include/ddk/ntdef.h b/reactos/include/ddk/ntdef.h index b17afaf440c..cfd85b7edf1 100644 --- a/reactos/include/ddk/ntdef.h +++ b/reactos/include/ddk/ntdef.h @@ -60,14 +60,6 @@ typedef unsigned long POINTER_64; // FIXME! HACK!!! #define CONST const #endif - -// -// FIXME: Non standard, should be deprecated -// -#ifndef STATIC -#define STATIC static -#endif - // // TRUE/FALSE // @@ -164,7 +156,7 @@ typedef unsigned long POINTER_64; // FIXME! HACK!!! // #ifndef FIELD_OFFSET #define FIELD_OFFSET(Type, Field) \ - ((LONG_PTR) (&(((Type *) 0)->Field))) + ((LONG)(LONG_PTR) (&(((Type *) 0)->Field))) #endif // @@ -193,14 +185,8 @@ typedef unsigned long POINTER_64; // FIXME! HACK!!! // // Import and Export Specifiers // -#ifndef DECL_IMPORT -#define DECL_IMPORT DECLSPEC_IMPORT //FIXME: DECL_IMPORT -> DECLSPEC_IMPORT -#endif -#ifndef DECL_EXPORT -#define DECL_EXPORT DECLSPEC_EXPORT //FIXME: DECL_EXPORT -> DECLSPEC_EXPORT -#endif -// Done the same way as in windef.h (for now *cough*) +// Done the same way as in windef.h for now #define DECLSPEC_IMPORT __declspec(dllimport) #define DECLSPEC_EXPORT __declspec(dllexport) #define DECLSPEC_NORETURN __declspec(noreturn) diff --git a/reactos/include/ddk/winddi.h b/reactos/include/ddk/winddi.h index 97a7048a7cf..20ceb16e11a 100644 --- a/reactos/include/ddk/winddi.h +++ b/reactos/include/ddk/winddi.h @@ -34,8 +34,8 @@ extern "C" { #endif -#ifndef DECL_IMPORT -#define DECL_IMPORT __attribute__((dllimport)) +#ifndef DECLSPEC_IMPORT +#define DECLSPEC_IMPORT __attribute__((dllimport)) #endif #ifndef WIN32KAPI diff --git a/reactos/include/ddk/winddk.h b/reactos/include/ddk/winddk.h index 1b16755df27..a6e1a94e58b 100644 --- a/reactos/include/ddk/winddk.h +++ b/reactos/include/ddk/winddk.h @@ -3122,10 +3122,10 @@ typedef struct { } HAL_DISPATCH, *PHAL_DISPATCH; #if defined(_NTDRIVER_) || defined(_NTDDK_) || defined(_NTHAL_) -extern DECL_IMPORT PHAL_DISPATCH HalDispatchTable; +extern DECLSPEC_IMPORT PHAL_DISPATCH HalDispatchTable; #define HALDISPATCH ((PHAL_DISPATCH)&HalDispatchTable) #else -extern DECL_EXPORT HAL_DISPATCH HalDispatchTable; +extern DECLSPEC_EXPORT HAL_DISPATCH HalDispatchTable; #define HALDISPATCH (&HalDispatchTable) #endif