windows: fix mingw build
On older mingw installations, DEVICE_TYPE isn't defined. This was redefined in windows.h, but it was done after it was already attempted to be used. This moves the #define for DEVICE_TYPE above the usage of it in windows.h to prevent compilation failures.
This commit is contained in:
parent
a9b3fe2e19
commit
b647c27b02
@ -4104,6 +4104,10 @@
|
||||
# define JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE 0x00002000
|
||||
#endif
|
||||
|
||||
#ifndef DEVICE_TYPE
|
||||
# define DEVICE_TYPE DWORD
|
||||
#endif
|
||||
|
||||
/* from ntifs.h */
|
||||
/* MinGW already has it, mingw-w64 does not. */
|
||||
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
|
||||
@ -4383,10 +4387,6 @@ typedef struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION {
|
||||
# define SystemProcessorPerformanceInformation 8
|
||||
#endif
|
||||
|
||||
#ifndef DEVICE_TYPE
|
||||
# define DEVICE_TYPE DWORD
|
||||
#endif
|
||||
|
||||
#ifndef FILE_DEVICE_FILE_SYSTEM
|
||||
# define FILE_DEVICE_FILE_SYSTEM 0x00000009
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user