regenerate fr30-opc.c
[deliverable/binutils-gdb.git] / readline / sysdep-norm.h
... / ...
CommitLineData
1/* System-dependent stuff, for ``normal'' systems */
2/* If you think you need to change this file, then you are wrong. In order to
3 avoid a huge ugly mass of nested #ifdefs, you should create a new file just
4 for your system, which contains exactly those #includes and definitions that
5 your system needs, AND NOTHING MORE! Then, add that file to the appropriate
6 place in configure.in, and viola, you are done. sysdep-sunos4.h is a good
7 example of how to do this. */
8
9#ifdef __GNUC__
10#define alloca __builtin_alloca
11#else
12#if defined (sparc) && defined (sun)
13#include <alloca.h>
14#endif
15#ifndef alloca /* May be a macro, with args. */
16extern char *alloca ();
17#endif
18#endif
19
20#include <sys/types.h> /* Needed by dirent.h */
21
22#if defined (USG) && defined (TIOCGWINSZ)
23#include <sys/stream.h>
24#if defined (USGr4) || defined (USGr3)
25#include <sys/ptem.h>
26#endif /* USGr4 */
27#endif /* USG && TIOCGWINSZ */
28
29#ifndef _WIN32
30#include <dirent.h>
31typedef struct dirent dirent;
32#endif
33
34/* SVR4 systems should use <termios.h> rather than <termio.h>. */
35
36#if defined (USGr4)
37#define _POSIX_VERSION
38#endif
39
40#if defined _WIN32 && !defined __GNUC__
41#include <malloc.h>
42#endif
This page took 0.021937 seconds and 4 git commands to generate.