Only define __MACOS__ if we're on Mac OS duh.
Fixed #elif TARGET_WIN32
Fixed type.