modify inline macro to work on windows