Added ifdef __cplusplus
extern "C"
for get_weighted_memory_size and get_memacct_resi
TRQ-1676