add define for macos