Skip to content
Snippets Groups Projects
Commit 2b09b764 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fail to build with an error if #included directly

The design is to #include eventwrap.h for cross-platform source
parent 81950713
No related branches found
No related tags found
No related merge requests found
Pipeline #5036 failed
......@@ -22,6 +22,10 @@
#ifndef _XPEVENT_H_
#define _XPEVENT_H_
#if !defined(__unix__) || !defined(_EVENTWRAP_H)
#error Include eventwrap.h instead
#endif
#include "gen_defs.h"
typedef HANDLE xpevent_t;
#define WaitForEvent(event, ms) WaitForSingleObject(event, ms)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment