* c-typeck.c (convert_arguments): Don't check for width changes
[official-gcc.git] / gcc / tsystem.h
bloba20dbe746b63472fb7e01f6c69b6be11f67d7423
1 /* Get common system includes and various definitions and declarations
2 based on target macros.
3 Copyright (C) 2000, 2001 Free Software Foundation, Inc.
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 #ifndef __GCC_TSYSTEM_H__
23 #define __GCC_TSYSTEM_H__
25 /* System headers (e.g. stdio.h, stdlib.h, unistd.h) sometimes
26 indirectly include getopt.h. Our -I flags will cause gcc's gnu
27 getopt.h to be included, not the platform's copy. In the default
28 case, gnu getopt.h will provide us with a no-argument prototype
29 which will generate -Wstrict-prototypes warnings. None of the
30 target files actually use getopt, so it is safe to tell gnu
31 getopt.h we never need this prototype. */
32 #ifndef HAVE_DECL_GETOPT
33 #define HAVE_DECL_GETOPT 1
34 #endif
36 /* GCC supplies this header. */
37 #include <stddef.h>
39 #ifdef inhibit_libc
41 #ifndef malloc
42 extern void *malloc (size_t);
43 #endif
45 #ifndef free
46 extern void free (void *);
47 #endif
49 #ifndef atexit
50 extern int atexit (void (*)(void));
51 #endif
53 #else /* ! inhibit_libc */
54 /* We disable this when inhibit_libc, so that gcc can still be built without
55 needing header files first. */
56 /* ??? This is not a good solution, since prototypes may be required in
57 some cases for correct code. */
59 /* GCC supplies this header. */
60 #include <stdarg.h>
62 /* All systems have this header. */
63 #include <stdio.h>
65 /* All systems have this header. */
66 #include <sys/types.h>
68 /* All systems have this header. */
69 #include <errno.h>
71 #ifndef errno
72 extern int errno;
73 #endif
75 #if defined(POSIX) || defined(USG)
76 #include <string.h>
77 #endif
79 /* GCC (fixproto) guarantees these system headers exist. */
80 #include <stdlib.h>
81 #include <unistd.h>
83 /* GCC supplies this header. */
84 #include <limits.h>
86 #if defined(POSIX) || defined(USG)
87 #include <time.h>
88 #endif
90 #endif /* inhibit_libc */
92 /* Define a generic NULL if one hasn't already been defined. */
93 #ifndef NULL
94 #define NULL 0
95 #endif
97 #endif /* __GCC_TSYSTEM_H__ */