1 /* @(#)prototyp.h 1.7 98/10/08 Copyright 1995 J. Schilling */ 2 /* 3 * Definitions for dealing with ANSI / KR C-Compilers 4 * 5 * Copyright (c) 1995 J. Schilling 6 */ 7 /* 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2, or (at your option) 11 * any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; see the file COPYING. If not, write to 20 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 21 */ 22 23 #ifndef _PROTOTYP_H 24 #define _PROTOTYP_H 25 26 #ifndef PROTOTYPES 27 /* 28 * If this has already been defined, 29 * someone else knows better than us... 30 */ 31 # ifdef __STDC__ 32 # if __STDC__ /* ANSI C */ 33 # define PROTOTYPES 34 # endif 35 # if defined(sun) && __STDC__ - 0 == 0 /* Sun C */ 36 # define PROTOTYPES 37 # endif 38 # endif 39 #endif /* PROTOTYPES */ 40 41 /* 42 * If we have prototypes, we should have stdlib.h string.h stdarg.h 43 */ 44 #ifdef PROTOTYPES 45 #if !(defined(SABER) && defined(sun)) 46 # ifndef HAVE_STDARG_H 47 # define HAVE_STDARG_H 48 # endif 49 #endif 50 # ifndef HAVE_STDLIB_H 51 # define HAVE_STDLIB_H 52 # endif 53 # ifndef HAVE_STRING_H 54 # define HAVE_STRING_H 55 # endif 56 # ifndef HAVE_STDC_HEADERS 57 # define HAVE_STDC_HEADERS 58 # endif 59 # ifndef STDC_HEADERS 60 # define STDC_HEADERS /* GNU name */ 61 # endif 62 #endif 63 64 #ifdef NO_PROTOTYPES /* Force not to use prototypes */ 65 # undef PROTOTYPES 66 #endif 67 68 #ifdef PROTOTYPES 69 # define __PR(a) a 70 #else 71 # define __PR(a) () 72 #endif 73 74 #endif /* _PROTOTYP_H */ 75