Better c++ compatibility to the doresize change
This commit is contained in:
@@ -64,16 +64,17 @@ extern int strnicmp(const char* s1, const char* s2, size_t n);
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <atomic>
|
||||
#define atomic_flag std::atomic_flag
|
||||
#define atomic_flag_t std::atomic_flag
|
||||
extern "C" {
|
||||
#else
|
||||
#include <stdatomic.h>
|
||||
#define atomic_flag_t atomic_flag
|
||||
#endif
|
||||
|
||||
/* Global variables residing in the platform module. */
|
||||
extern int dopause, /* system is paused */
|
||||
mouse_capture; /* mouse is captured in app */
|
||||
extern atomic_flag doresize; /* screen resize requested */
|
||||
extern atomic_flag_t doresize; /* screen resize requested */
|
||||
extern volatile int is_quit; /* system exit requested */
|
||||
|
||||
#ifdef MTR_ENABLED
|
||||
|
Reference in New Issue
Block a user