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