arch/sim: unify usage for SYMBOL macro

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2023-07-07 12:20:04 +03:00 committed by Alan Carvalho de Assis
parent a0b19226a1
commit 85a46bf599
6 changed files with 22 additions and 18 deletions

View File

@ -29,10 +29,12 @@
* Pre-processor Definitions
***************************************************************************/
#if defined(CONFIG_HOST_MACOS)
#define SYMBOL(x) _##x
#ifdef __CYGWIN__
# define SYMBOL(s) _##s
#elif defined(__ELF__)
# define SYMBOL(s) s
#else
#define SYMBOL(x) x
# define SYMBOL(s) _##s
#endif
/****************************************************************************

View File

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

View File

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

View File

@ -29,10 +29,12 @@
* Pre-processor Definitions
****************************************************************************/
#if defined(CONFIG_HOST_MACOS)
#define SYMBOL(x) _##x
#ifdef __CYGWIN__
# define SYMBOL(s) _##s
#elif defined(__ELF__)
# define SYMBOL(s) s
#else
#define SYMBOL(x) x
# define SYMBOL(s) _##s
#endif
/****************************************************************************

View File

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

View File

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