From 766f15d858756e25df456c421076faf02dfa7d0a Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Fri, 17 Dec 2021 22:26:21 +0200 Subject: [PATCH] Better c++ compatibility to the doresize change --- src/include/86box/plat.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/include/86box/plat.h b/src/include/86box/plat.h index ecf8cb063..75c32d087 100644 --- a/src/include/86box/plat.h +++ b/src/include/86box/plat.h @@ -64,16 +64,17 @@ extern int strnicmp(const char* s1, const char* s2, size_t n); #ifdef __cplusplus #include -#define atomic_flag std::atomic_flag +#define atomic_flag_t std::atomic_flag extern "C" { #else #include +#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