Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/flex/dist deal with libc's namespace protection
details: https://anonhg.NetBSD.org/src/rev/d638f993f7ee
branches: trunk
changeset: 748584:d638f993f7ee
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 28 05:04:02 2009 +0000
description:
deal with libc's namespace protection
diffstat:
external/bsd/flex/dist/flex.skl | 6 ++++++
external/bsd/flex/dist/initscan.c | 3 +++
2 files changed, 9 insertions(+), 0 deletions(-)
diffs (36 lines):
diff -r a598973e45f6 -r d638f993f7ee external/bsd/flex/dist/flex.skl
--- a/external/bsd/flex/dist/flex.skl Wed Oct 28 04:25:13 2009 +0000
+++ b/external/bsd/flex/dist/flex.skl Wed Oct 28 05:04:02 2009 +0000
@@ -197,6 +197,9 @@
/* begin standard C headers. */
%if-c-only
+#ifdef _LIBC
+#include "namespace.h"
+#endif
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -215,6 +218,9 @@
%if-c++-only
/* begin standard C++ headers. */
+#ifdef _LIBC
+#include "namespace.h"
+#endiif
#include <iostream>
#include <errno.h>
#include <cstdlib>
diff -r a598973e45f6 -r d638f993f7ee external/bsd/flex/dist/initscan.c
--- a/external/bsd/flex/dist/initscan.c Wed Oct 28 04:25:13 2009 +0000
+++ b/external/bsd/flex/dist/initscan.c Wed Oct 28 05:04:02 2009 +0000
@@ -16,6 +16,9 @@
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
+#ifdef _LIBC
+#include "namespace.h"
+#endif
#include <stdio.h>
#include <string.h>
#include <errno.h>
Home |
Main Index |
Thread Index |
Old Index