C Which headers does this macro defined?

  • Thread starter Deleted member 66267
  • Start date
D

Deleted member 66267

Guest
I know FreeBSD defined itself as __FreeBSD__, but I don't know on which specific headers. Please help.
 
None, this is built into the compiler when it targets FreeBSD.
The most close thing I could find is __FreeBSD_version in <sys/param.h> (in the kernel) or <osreldate.h> (in userland).
 
Well, again, it's builtin. You can list all predefined macros with clang -x c /dev/null -dM -E.
You can verify that this macro is builtin:
Code:
$ strings /usr/bin/clang | grep __FreeBSD__
__FreeBSD__
 
Back
Top