nir/spirv: guard macros in case of redefinition
On some systems, these macros are already defined, and being defined slightly differently causes them to emit redefinition-warnings.
Let's wrap them in ifdefs to avoid the warnings.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
On some systems, these macros are already defined, and being defined slightly differently causes them to emit redefinition-warnings.
Let's wrap them in ifdefs to avoid the warnings.