Having scanned the entire code base I can find a reference to pic.h on a
line 87, but in an obscure PIC18 port. I still don’t know which port
you are trying to use. You point to a file included in a demo for a
Win32 port, but are complaining about a header file used in a pic18 port.
I’m going to guess one of the following:
You are trying to use a Win32 port but have the include paths set
incorrectly, so are picking up a header file for a different port (the
PIC18 port), or
You are trying to use the PIC18 port but are also trying to build a
file intended for use with the Win32 demo
You are trying to build a PIC18 port with a compiler intended to
build Windows executables.