Unix has various flags.
It doesn't have to do with makefiles.
Try writing instead of _UNIX:
_unix, unix, _UNIX_, UNIX... etc...
The best thing is: see what compiler are you using, and then look at its documentation, because compilers are setting those flags, and different compilers name different names (for exactly, or almost, the same thing)