mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
lib9: use __builtin_return_address on IBM XL/C
This commit is contained in:
parent
20c841bac1
commit
7a371bf936
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ extern int exitcode(char*);
|
||||||
extern void exits(char*);
|
extern void exits(char*);
|
||||||
extern double p9frexp(double, int*);
|
extern double p9frexp(double, int*);
|
||||||
extern ulong getcallerpc(void*);
|
extern ulong getcallerpc(void*);
|
||||||
#if defined(__GNUC__) || defined(__clang__)
|
#if defined(__GNUC__) || defined(__clang__) || defined(__IBMC__)
|
||||||
#define getcallerpc(x) ((ulong)__builtin_return_address(0))
|
#define getcallerpc(x) ((ulong)__builtin_return_address(0))
|
||||||
#endif
|
#endif
|
||||||
extern char* p9getenv(char*);
|
extern char* p9getenv(char*);
|
||||||
|
|
Loading…
Reference in a new issue