1 #if defined(__cplusplus) 2 extern "C" { 3 #endif 4 5 #define __RENAME(x) __asm__(#x) 6 7 #if defined(__cplusplus) 8 extern "C++" char* basename(char*) __RENAME(__gnu_basename) __INTRODUCED_IN(23); 9 extern "C++" const char* basename(const char*) __RENAME(__gnu_basename) __INTRODUCED_IN(23); 10 #else 11 char* basename(const char*) __RENAME(__gnu_basename) __INTRODUCED_IN(23); 12 #endif 13 14 #if defined(__cplusplus) 15 } 16 #endif 17