sim: Prefix symbols with _ for non-ELF
Namely for Mach-O. Leave __CYGWIN__ case as it is.
This commit is contained in:
parent
b1678d0e26
commit
39bd9ff670
@ -46,8 +46,12 @@
|
|||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
# define SYMBOL(s) _##s
|
# define SYMBOL(s) _##s
|
||||||
#else
|
#else
|
||||||
|
#ifdef __ELF__
|
||||||
|
# define SYMBOL(s) _##s
|
||||||
|
#else
|
||||||
# define SYMBOL(s) s
|
# define SYMBOL(s) s
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
|
@ -81,7 +81,11 @@
|
|||||||
//# define SYMBOL(s) _##s
|
//# define SYMBOL(s) _##s
|
||||||
# define SYMBOL(s) s
|
# define SYMBOL(s) s
|
||||||
#else
|
#else
|
||||||
|
#ifdef __ELF__
|
||||||
# define SYMBOL(s) s
|
# define SYMBOL(s) s
|
||||||
|
#else
|
||||||
|
# define SYMBOL(s) _##s
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user