BUG: make preprocessor tests consistent in halffloat.c

halfloat.c uses preprocessor tests to conditionally raise floating point exceptions. This fixes an inconsistent usage of #ifdef instead of #if in these tests.