vsf porting, even if running on windows, vsf implements a linux environment

This commit is contained in:
vsfos 2022-06-06 12:24:05 +08:00 committed by jiang jianjun
parent 8b381e2164
commit 3853ac3bd6

6
x.h
View File

@ -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