Fix SDL check_header_includes=1 build
Type `SyncGLMethod` was defined conditional on DXX_USE_OGL, but header `common/include/ogl_sync.h` used `SyncGLMethod` unconditionally. This works fine in the normal build since SDL builds never include `common/include/ogl_sync.h`, but broke the check_header_includes=1 test since that compiles `common/include/ogl_sync.h` even for SDL builds. Wrap type `ogl_sync` in `#if DXX_USE_OGL` to hide it from the check_header_includes=1 test in SDL mode.
This commit is contained in:
parent
74d4833591
commit
d67a27df65
|
@ -19,6 +19,7 @@
|
|||
|
||||
namespace dcx {
|
||||
|
||||
#if DXX_USE_OGL
|
||||
class ogl_sync {
|
||||
class sync_deleter
|
||||
{
|
||||
|
@ -39,5 +40,6 @@ class ogl_sync {
|
|||
void init(SyncGLMethod sync_method, int wait);
|
||||
void deinit();
|
||||
};
|
||||
#endif
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue