D Deleted member 66267 Guest Mar 9, 2021 #1 I know FreeBSD defined itself as __FreeBSD__, but I don't know on which specific headers. Please help.
I know FreeBSD defined itself as __FreeBSD__, but I don't know on which specific headers. Please help.
OP D Deleted member 66267 Guest Mar 9, 2021 Thread Starter #3 Zirias said: None, this is built into the compiler when it targets FreeBSD. Click to expand... The most close thing I could find is __FreeBSD_version in <sys/param.h> (in the kernel) or <osreldate.h> (in userland).
Zirias said: None, this is built into the compiler when it targets FreeBSD. Click to expand... The most close thing I could find is __FreeBSD_version in <sys/param.h> (in the kernel) or <osreldate.h> (in userland).
zirias@ Developer Mar 9, 2021 #4 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__
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__