use macros instead of inline functions in shgetc.h