mirror of
https://github.com/xboot/xfel.git
synced 2024-11-23 17:53:31 +08:00
vsf porting, even if running on windows, vsf implements a linux environment
This commit is contained in:
parent
8b381e2164
commit
3853ac3bd6
6
x.h
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user