/* Compiler dependencies */
/***************************************************/
-/* ReactOS-specific defines */
-#ifdef DDKAPI
- #define USE_REACTOS_DDK
-#endif //DDKAPI
+#define DDKAPI __stdcall
+#define DDKFASTAPI __fastcall
+#define DDKCDECLAPI __cdecl
/* Are we under GNU C (mingw) ??? */
-#if __GNUC__ >=3
+#ifdef __GNUC__
#define DEF_U64(x) (x##ULL)
#define DEF_I64(x) (x##LL)
- /* ReactOS-specific defines */
- #ifdef USE_REACTOS_DDK
- #define DDKFASTAPI __attribute__((fastcall))
- #else //USE_REACTOS_DDK
-
- #define DDKAPI __attribute__((stdcall))
- #define DDKFASTAPI __attribute__((fastcall))
- #define DDKCDECLAPI __attribute__((cdecl))
-
- #endif //DDKAPI
-
- #define DECLSPEC_NAKED __attribute__((naked))
-
#else // !__GNUC__ => MSVC/Intel
#define DEF_U64(x) (x##UI64)
#define DEF_I64(x) (x##I64)
- /* ReactOS-specific defines */
- #ifdef USE_REACTOS_DDK
- #else //USE_REACTOS_DDK
-
- #define DDKAPI __stdcall
- #define DDKFASTAPI __fastcall
- #define DDKCDECLAPI _cdecl
-
- #endif //DDKAPI
-
- #define DECLSPEC_NAKED __declspec(naked)
-
#endif //__GNUC__
deviceExtension->lun[ldev].IdentifyData.FeaturesSupport.Address48) {
i++;
} else {
+#ifdef _MSC_VER
+#pragma message ("HACK HACK HACK Disabling warning HACK HACK HACK")
+#pragma warning(push)
+#pragma warning(disable:4333)
+#endif
fis[7] |= (plba[3] >> 24) & 0x0f;
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
}
fis[8] = plba[3];
NTHALAPI
VOID
+NTAPI
HalDisplayString (
PUCHAR String
);
NTHALAPI
VOID
+NTAPI
HalQueryDisplayParameters (
OUT PULONG WidthInCharacters,
OUT PULONG HeightInLines,
NTHALAPI
VOID
+NTAPI
HalSetDisplayParameters (
IN ULONG CursorColumn,
IN ULONG CursorRow
#include "intrin.h"
#endif
+#ifdef _MSC_VER
+//
+// FIXME: MSVC Intrinsics
+//
+unsigned char __readfsbyte(const unsigned long Offset);
+#pragma intrinsic(__readfsbyte)
+long _InterlockedExchange(volatile long * const Target, const long Value);
+#pragma intrinsic(_InterlockedExchange)
+long _InterlockedExchangeAdd(volatile long * const Addend, const long Value);
+#pragma intrinsic(_InterlockedExchangeAdd)
+long _InterlockedCompareExchange(volatile long * const Destination, const long Exchange, const long Comperand);
+#pragma intrinsic(_InterlockedCompareExchange)
+long _InterlockedDecrement(volatile long * const lpAddend);
+#pragma intrinsic(_InterlockedDecrement)
+long _InterlockedIncrement(volatile long * const lpAddend);
+#pragma intrinsic(_InterlockedIncrement)
+#endif
+
#if !defined(_NTHAL_)
#define NTHALAPI DECLSPEC_IMPORT
#else
ULONG Spare1;
} KFLOATING_SAVE, *PKFLOATING_SAVE;
-#ifdef _MSC_VER
-//
-// FIXME: Intrinsics
-//
-unsigned char __readfsbyte(const unsigned long Offset);
-#pragma intrinsic(__readfsbyte)
-#endif
-
-
FORCEINLINE
ULONG
KeGetCurrentProcessorNumber(VOID)