From 3853ac3bd6f3f24b940106449c19519c1b074d80 Mon Sep 17 00:00:00 2001 From: vsfos Date: Mon, 6 Jun 2022 12:24:05 +0800 Subject: [PATCH] vsf porting, even if running on windows, vsf implements a linux environment --- x.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x.h b/x.h index 92a3614..3615aba 100644 --- a/x.h +++ b/x.h @@ -5,6 +5,12 @@ extern "C" { #endif +#ifdef __VSF__ +// __VSF__ should be checked before __WINDOWS__ +// because even if vsf running on Windows, it emulates a linux +# undef _WIN32 +# define __linux__ +#endif #if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__) # define __WINDOWS__ #endif