Use native Windows types/macros when available
This prevents conflicts when a translation unit includes `WindowsWrapper.h`, and middleware that includes `windows.h`.
This commit is contained in:
parent
44762363cf
commit
61aec1cb15
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windef.h>
|
||||
#include <wingdi.h>
|
||||
#else
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define RGB(r,g,b) ((r) | ((g) << 8) | ((b) << 16))
|
||||
|
@ -18,3 +23,5 @@ struct RECT
|
|||
};
|
||||
|
||||
#define MAX_PATH FILENAME_MAX
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue