Adjust the C++ preprocessor to include /usr/include/c++ by default for
[dragonfly.git] / contrib / gcc / f / proj.h
1 /* proj.h file for Gnu Fortran
2    Copyright (C) 1995, 1996 Free Software Foundation, Inc.
3    Contributed by James Craig Burley.
4
5 This file is part of GNU Fortran.
6
7 GNU Fortran 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.
11
12 GNU Fortran 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.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Fortran; see the file COPYING.  If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA.
21
22 */
23
24 #ifndef _H_f_proj
25 #define _H_f_proj
26
27 #ifdef USE_HCONFIG
28 #include "hconfig.j"
29 #else
30 #include "config.j"
31 #endif
32 #include "system.j"
33
34 #if !defined (__GNUC__) || (__GNUC__ < 2)
35 #error "You have to use gcc 2.x to build g77 (might be fixed in g77-0.6)."
36 #endif
37
38 #ifndef BUILT_WITH_270
39 #if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
40 #define BUILT_WITH_270 1
41 #else
42 #define BUILT_WITH_270 0
43 #endif
44 #endif  /* !defined (BUILT_WITH_270) */
45
46 /* Include files everyone gets.  <assert.h> is needed for assert().
47    <stddef.h> is needed for offsetof, but technically also NULL,
48    size_t, ptrdiff_t, and so on.  */
49
50 #include "assert.j"
51
52 #if HAVE_STDDEF_H
53 #include <stddef.h>
54 #endif
55
56 /* Generally useful definitions. */
57
58 typedef enum
59   {
60 #if !defined(false) || !defined(true)
61     false = 0, true = 1,
62 #endif
63 #if !defined(FALSE) || !defined(TRUE)
64     FALSE = 0, TRUE = 1,
65 #endif
66     Doggone_Trailing_Comma_Dont_Work = 1
67   } bool;
68
69 #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
70
71 #ifndef UNUSED  /* Compile with -DUNUSED= if cc doesn't support this. */
72 #if BUILT_WITH_270
73 #define UNUSED __attribute__ ((unused))
74 #else   /* !BUILT_WITH_270 */
75 #define UNUSED
76 #endif  /* !BUILT_WITH_270 */
77 #endif  /* !defined (UNUSED) */
78
79 #ifndef dmpout
80 #define dmpout stderr
81 #endif
82
83 #endif