aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2004-10-28 21:44:31 +0000
committerMike Stump <mrs@gcc.gnu.org>2004-10-28 21:44:31 +0000
commit31eec874a142a408e278a62a7de6639f490ce87c (patch)
treee4b0af2758cfd91ac035ebbd6d861c46ddb6004a /fixincludes/inclhack.def
parent14df5747394ff436ba13ebd39c2742c40fc45eb8 (diff)
downloadgcc-31eec874a142a408e278a62a7de6639f490ce87c.zip
gcc-31eec874a142a408e278a62a7de6639f490ce87c.tar.gz
gcc-31eec874a142a408e278a62a7de6639f490ce87c.tar.bz2
inclhack.def: Avoid changing NULL on C++ friendly systems.
* inclhack.def: Avoid changing NULL on C++ friendly systems. * fixincl.x: Regenerate. From-SVN: r89786
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r--fixincludes/inclhack.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index 00c5ae6..084594c 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -3963,6 +3963,8 @@ fix = {
files = sys/dir.h;
files = sys/param.h;
files = sys/types.h;
+ /* avoid changing C++ friendly NULL */
+ bypass = __cplusplus;
select = "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
c_fix = format;
c_fix_arg = "#define NULL 0";