deal with libc's namespace protection

This commit is contained in:
christos 2009-10-28 05:04:02 +00:00
parent b37fcdb29c
commit d7554581c8
2 changed files with 9 additions and 0 deletions

View File

@ -197,6 +197,9 @@ m4_ifdef( [[M4_YY_TABLES_EXTERNAL]],
/* 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 @@ m4preproc_include(`flexint.h')
%if-c++-only
/* begin standard C++ headers. */
#ifdef _LIBC
#include "namespace.h"
#endiif
#include <iostream>
#include <errno.h>
#include <cstdlib>

View File

@ -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>