1 /********************************************************************
2  * $Author: jgoerzen $
3  * $Revision: 1.3 $
4  * $Date: 2002/02/12 19:54:18 $
5  * $Source: /home/jgoerzen/tmp/gopher-umn/gopher/head/object/Stdlib.h,v $
6  * $State: Exp $
7  *
8  * Paul Lindner, University of Minnesota CIS.
9  *
10  * Copyright 1991, 1992 by the Regents of the University of Minnesota
11  * see the file "Copyright" in the distribution for conditions of use.
12  *********************************************************************
13  * MODULE: Stdlib.h
14  * Include stdlib.h on systems that have it.
15  *********************************************************************
16  * Revision History:
17  * $Log: Stdlib.h,v $
18  * Revision 1.3  2002/02/12 19:54:18  jgoerzen
19  * Updated with regex fixes
20  *
21  * Revision 1.2  2000/08/23 00:03:59  jgoerzen
22  * Updates
23  *
24  * Revision 1.1.1.1  2000/08/19 00:28:56  jgoerzen
25  * Import from UMN Gopher 2.3.1 after GPLization
26  *
27  * Revision 3.6  1996/01/04  18:26:50  lindner
28  * Updates for autoconf
29  *
30  * Revision 3.5  1994/04/07  17:26:26  lindner
31  * Fix for pyramids
32  *
33  * Revision 3.4  1994/03/07  04:42:05  lindner
34  * Add sys/types.h and compatible.h
35  *
36  * Revision 3.3  1993/07/07  19:28:04  lindner
37  * Mods for SGIs
38  *
39  * Revision 3.2  1993/06/15  06:07:16  lindner
40  * Mods for VMS
41  *
42  * Revision 3.1.1.1  1993/02/11  18:03:04  lindner
43  * Gopher+1.2beta release
44  *
45  * Revision 1.1  1992/12/10  23:27:52  lindner
46  * gopher 1.1 release
47  *
48  *
49  *********************************************************************/
50 
51 
52 #ifndef  GSTDLIB_H
53 #define  GSTDLIB_H
54 
55 #include "compatible.h"
56 
57 /**  These definitely need stdlib.h **/
58 #if defined(STDC_HEADERS)
59 #  ifndef sony_news   /** Ack! sonynews is STDC but no stdlib! **/
60 #    include <stdlib.h>
61 #  endif
62 #else
63 
64 /** These definitely *don't* want stdlib.h **/
65 #  if !defined(mips) && !defined(sequent) && !defined(n16) && !defined(NeXT) &&      !defined(ultrix) && !defined(UMAX43) && !defined(sony_news) && !defined(pyr)
66 
67 #     include <stdlib.h>
68 #  endif
69 #endif
70 
71 #if !defined(VMS)
72 #  include <sys/types.h>
73 #ifdef HAVE_STDLIB_H
74 #include <stdlib.h>
75 #endif
76 #ifdef HAVE_MALLOC_H
77 #include <stdlib.h>
78 #endif
79 #include <string.h>
80 #endif
81 
82 
83 
84 #endif /* GSTDLIB_H */
85