mirror of
https://github.com/partic2/libffi
synced 2026-11-10 01:57:19 +00:00
Move the macros from unix64.S into a shared header asmnames.h and use them in win64.S too.
31 lines
508 B
C
31 lines
508 B
C
#ifndef ASMNAMES_H
|
|
#define ASMNAMES_H
|
|
|
|
#define C2(X, Y) X ## Y
|
|
#define C1(X, Y) C2(X, Y)
|
|
#ifdef __USER_LABEL_PREFIX__
|
|
# define C(X) C1(__USER_LABEL_PREFIX__, X)
|
|
#else
|
|
# define C(X) X
|
|
#endif
|
|
|
|
#ifdef __APPLE__
|
|
# define L(X) C1(L, X)
|
|
#else
|
|
# define L(X) C1(.L, X)
|
|
#endif
|
|
|
|
#if defined(__ELF__) && defined(__PIC__)
|
|
# define PLT(X) X@PLT
|
|
#else
|
|
# define PLT(X) X
|
|
#endif
|
|
|
|
#ifdef __ELF__
|
|
# define ENDF(X) .type X,@function; .size X, . - X
|
|
#else
|
|
# define ENDF(X)
|
|
#endif
|
|
|
|
#endif /* ASMNAMES_H */
|