aboutsummaryrefslogtreecommitdiff
path: root/tools/kerneldoc/subsys
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2012-01-24 15:13:55 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2012-01-24 15:13:55 +0000
commitb5a02379faea5504a73a1af49e4091e60fa57320 (patch)
tree6a0e7b5bce8dd2471dca8933d06157dc0e6ffd73 /tools/kerneldoc/subsys
parent3660e7b0daddeb0a8141112b016ad600d135c564 (diff)
downloadsrc-b5a02379faea5504a73a1af49e4091e60fa57320.tar.gz
src-b5a02379faea5504a73a1af49e4091e60fa57320.zip
Just define __FreeBSD__ to 1 instead of doing what the compiler does.
The kernel is supposed to DTRT based upon the __FreeBSD_version value, not the value of __FreeBSD__. Discussed with: bz
Notes
Notes: svn path=/head/; revision=230509
Diffstat (limited to 'tools/kerneldoc/subsys')
-rw-r--r--tools/kerneldoc/subsys/common-Doxyfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/kerneldoc/subsys/common-Doxyfile b/tools/kerneldoc/subsys/common-Doxyfile
index 2c42510acc4b..608258eda1f3 100644
--- a/tools/kerneldoc/subsys/common-Doxyfile
+++ b/tools/kerneldoc/subsys/common-Doxyfile
@@ -230,8 +230,12 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = $(DOXYGEN_SRC_INCLUDE_PATH) \
.
INCLUDE_FILE_PATTERNS = *.h
+# __FreeBSD__ is normally defined to the the major version number of
+# FreeBSD. In the kernel source it is just checked for != 0, and
+# __FreeBSD_version is used for version dependend code.
+# To make live simple on major version bumps, just define __FreeBSD__ to 1.
PREDEFINED = _KERNEL \
- __FreeBSD__=10 \
+ __FreeBSD__=1 \
__${TARGET_ARCH}__=1 \
__${TARGET_ARCH}=1
EXPAND_AS_DEFINED =