magic.h

Where can I find #defines for filetypes like the ELF etc and the magic.h file?
CAn anyone advice.
Thanks in advance.

usually:
/usr/include/magic.h

and there is almost always a companion to define system-specific magic numbers:
/usr/include/sys/magic.h