made some #define's functions, otherwise MSVC complains (not C99 compatible)