- Get rid of DECLSPEC_EXPORT from DDK

- "Isolate Hal* #defines, which are absent in WDK, they should not be used in kernel development." No, exactly, and they shouldn't be used in Xbox HAL either

svn path=/trunk/; revision=42807
This commit is contained in:
Stefan Ginsberg 2009-08-20 13:57:16 +00:00
parent ce5adcdab2
commit 4705fbc38a
3 changed files with 5 additions and 11 deletions

View file

@ -304,7 +304,10 @@ HalpXboxIoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject,
return STATUS_ACCESS_DENIED;
}
#define HalExamineMBR HALDISPATCH->HalExamineMBR
#define HalExamineMBR HALDISPATCH->HalExamineMBR
#define HalIoReadPartitionTable HALDISPATCH->HalIoReadPartitionTable
#define HalIoSetPartitionInformation HALDISPATCH->HalIoSetPartitionInformation
#define HalIoWritePartitionTable HALDISPATCH->HalIoWritePartitionTable
void
HalpXboxInitPartIo(void)

View file

@ -193,7 +193,6 @@ typedef unsigned long POINTER_64; // FIXME! HACK!!!
// 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)

View file

@ -2855,7 +2855,7 @@ typedef struct {
extern NTSYSAPI PHAL_DISPATCH HalDispatchTable;
#define HALDISPATCH ((PHAL_DISPATCH)&HalDispatchTable)
#else
extern DECLSPEC_EXPORT HAL_DISPATCH HalDispatchTable;
extern __declspec(dllexport) HAL_DISPATCH HalDispatchTable;
#define HALDISPATCH (&HalDispatchTable)
#endif
@ -2877,14 +2877,6 @@ extern DECLSPEC_EXPORT HAL_DISPATCH HalDispatchTable;
#define HalEndOfBoot HALDISPATCH->HalEndOfBoot
#define HalMirrorVerify HALDISPATCH->HalMirrorVerify
#ifndef _NTOSKRNL_
#define HalDeviceControl HALDISPATCH->HalDeviceControl
#define HalIoAssignDriveLetters HALDISPATCH->HalIoAssignDriveLetters
#define HalIoReadPartitionTable HALDISPATCH->HalIoReadPartitionTable
#define HalIoSetPartitionInformation HALDISPATCH->HalIoSetPartitionInformation
#define HalIoWritePartitionTable HALDISPATCH->HalIoWritePartitionTable
#endif
typedef enum _FILE_INFORMATION_CLASS {
FileDirectoryInformation = 1,
FileFullDirectoryInformation,