arch/sim: Simplify SYMBOL macro definition

Change-Id: I1772b65b9bbe29917885e432056f84921b562eb0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-01-10 00:05:43 -08:00 committed by Abdelatif Guettouche
parent e772be8c8a
commit fbc68912b9
2 changed files with 2 additions and 7 deletions

View File

@ -45,13 +45,11 @@
#ifdef __CYGWIN__
# define SYMBOL(s) _##s
#else
#ifdef __ELF__
#elif defined(__ELF__)
# define SYMBOL(s) s
#else
# define SYMBOL(s) _##s
#endif
#endif
/**************************************************************************
* Public Functions

View File

@ -78,15 +78,12 @@
#endif
#ifdef __CYGWIN__
//# define SYMBOL(s) _##s
# define SYMBOL(s) s
#else
#ifdef __ELF__
#elif defined(__ELF__)
# define SYMBOL(s) s
#else
# define SYMBOL(s) _##s
#endif
#endif
/**************************************************************************
* Public Functions