It's been a long time since I've posted here, but this looks like a good place to jump back in.
The code you posted is not for PICC (HiTech's) compiler, but rather for the CCS
compiler. Yes, the HiTech C is around 950 dollars per family, but the CCS compilers are around 125 dollars per family. The 12Fxxx compiler was given away free with MPLab 7.40, or something like that.
That is why you are getting the errors for #fuses, etc. CCS is an inexpensive compiler, and not too bad, as long as you write your own functions, and stay away from thier built in functions. These compilers, however, will not do pointers to constants, although there is a workaround, and do not have a linker, yet. (I understand they are working on both of these issues, but are nowhere close.)
HiTech, on the other hand is pretty close to ANSI C, but also way more expensive.
I'm trying out SourceBoost C, at the moment, and quite like what I'm finding, so far. It seems pretty close to ANSI C, and seems to have good optimization. I managed to pick up a license on ebay, for under 50 dollars Canadian, and you should be able to do the same, if you are on ebay. I'll let everyone know how much I like it, after I've played with it for a while.
Regards,
Robert