mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 23:57:54 +01:00
9f36c7f497
In case you're wondering, the gcc-2.7.2.1 import uses this to generate code. The size of the generated code is bigger than the entire bison release, making this a saving. The bison doc is pretty good apparently.
26 lines
719 B
C
26 lines
719 B
C
#ifdef MSDOS
|
|
#include <io.h>
|
|
#endif
|
|
|
|
#if defined(HAVE_STDLIB_H) || defined(MSDOS)
|
|
#include <stdlib.h>
|
|
#endif
|
|
|
|
#if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H)
|
|
#define HAVE_STRING_H 1
|
|
#endif
|
|
|
|
#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
|
|
#include <string.h>
|
|
/* An ANSI string.h and pre-ANSI memory.h might conflict. */
|
|
#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
|
|
#include <memory.h>
|
|
#endif /* not STDC_HEADERS and HAVE_MEMORY_H */
|
|
#ifndef bcopy
|
|
#define bcopy(src, dst, num) memcpy((dst), (src), (num))
|
|
#endif
|
|
#else /* not STDC_HEADERS and not HAVE_STRING_H */
|
|
#include <strings.h>
|
|
/* memory.h and strings.h conflict on some systems. */
|
|
#endif /* not STDC_HEADERS and not HAVE_STRING_H */
|