1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#define __RENAME(x) asm(#x) #if defined(__cplusplus) extern "C++" const char* strchrnul(const char*, int) __RENAME(strchrnul) __INTRODUCED_IN(24); #endif #if defined(__cplusplus) extern "C" int foo(); #endif #if defined(__cplusplus) extern "C" { #endif char* strchrnul(char*, int) __INTRODUCED_IN(24); #if defined(__cplusplus) } #endif