#ifdef __cplusplus extern "C" { #endif extern int my_UPC_get_thread(void); #ifdef __cplusplus } #endif