Work around the use of "register" in DirectDB headers
This keyword results in deprecation warnings since C++11 and errors since C++17 in which it was completely removed.
This commit is contained in:
parent
dc6a0c069b
commit
b389483c58
1 changed files with 5 additions and 0 deletions
|
|
@ -14,9 +14,14 @@
|
|||
#include "wx/gdicmn.h"
|
||||
#include "wx/vidmode.h"
|
||||
|
||||
// "register" is removed in C++17 but used inside these headers.
|
||||
#define register
|
||||
|
||||
#include <directfb.h>
|
||||
#include <directfb_version.h>
|
||||
|
||||
#undef register
|
||||
|
||||
// DFB < 1.0 didn't have u8 type, only __u8
|
||||
#if DIRECTFB_MAJOR_VERSION == 0
|
||||
typedef __u8 u8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue