sim: Prefix symbols with _ for non-ELF

Namely for Mach-O.  Leave __CYGWIN__ case as it is.
This commit is contained in:
YAMAMOTO Takashi 2020-01-29 00:17:05 +09:00 committed by Alin Jerpelea
parent b1678d0e26
commit 39bd9ff670
2 changed files with 8 additions and 0 deletions

View File

@ -46,8 +46,12 @@
#ifdef __CYGWIN__
# define SYMBOL(s) _##s
#else
#ifdef __ELF__
# define SYMBOL(s) _##s
#else
# define SYMBOL(s) s
#endif
#endif
/**************************************************************************
* Public Functions

View File

@ -81,7 +81,11 @@
//# define SYMBOL(s) _##s
# define SYMBOL(s) s
#else
#ifdef __ELF__
# define SYMBOL(s) s
#else
# define SYMBOL(s) _##s
#endif
#endif
/**************************************************************************