root/releases/1.8.1/10/confmagic.h

Revision 517, 2.1 KB (checked in by pennmush, 2 years ago)

PennMUSH 1.8.1p3 Archival

Line 
1/*
2 * This file was produced by running metaconfig and is intended to be included
3 * after config.h and after all the other needed includes have been dealt with.
4 *
5 * This file may be empty, and should not be edited. Rerun metaconfig instead.
6 * If you wish to get rid of this magic, remove this file and rerun metaconfig
7 * without the -M option.
8 *
9 *  $Id: Magic_h.U,v 3.0.1.2 1993/11/10 17:32:58 ram Exp $
10 */
11
12#ifndef _confmagic_h_
13#define _confmagic_h_
14
15#ifndef HAS_BCOPY
16#ifndef bcopy
17#define bcopy(s,d,l) memcpy((d),(s),(l))
18#endif
19#endif
20
21#ifndef HAS_BZERO
22#ifndef bzero
23#define bzero(s,l) memset((s),0,(l))
24#endif
25#endif
26
27/* If your system doesn't have the crypt(3) DES encryption code,
28 * (which isn't exportable from the U.S.), then don't encrypt
29 */
30#ifndef HAS_CRYPT
31#define crypt(s,t) (s)
32#endif
33
34#ifdef HAS_HUGE_VAL
35#define HUGE_DOUBLE HUGE_VAL
36#else
37#ifdef HAS_HUGE
38#define HUGE_DOUBLE HUGE
39#else
40#ifdef HAS_MAXDOUBLE
41#define HUGE_DOUBLE MAXDOUBLE
42#else
43#define HUGE_DOUBLE 2000000000
44#endif
45#endif
46#endif
47#ifdef HAS_INT_MAX
48#define HUGE_INT    INT_MAX
49#else
50#ifdef HAS_MAXINT
51#define HUGE_INT    MAXINT
52#else
53#define HUGE_INT    2000000000
54#endif
55#endif
56
57#ifndef HAS_MEMCPY
58#ifndef memcpy
59#define memcpy(d,s,l) bcopy((s),(d),(l))
60#endif
61#endif
62
63#ifndef HAS_MEMMOVE
64#ifndef memmove
65#define memmove(d,s,l) bcopy((s),(d),(l))
66#endif
67#endif
68
69#ifndef HAS_RANDOM
70#ifndef random
71#ifdef HAS_LRAND48
72#define random lrand48
73#define srandom srand48
74#else
75#ifdef HAS_RAND
76#define random rand
77#define srandom srand
78#endif
79#endif
80#endif
81#endif
82
83#ifndef HAS_SIGCHLD
84#define SIGCHLD SIGCLD
85#endif
86
87#ifndef HAS_SIGCLD
88#define SIGCLD  SIGCHLD
89#endif
90
91#ifndef HAS_INDEX
92#ifndef index
93#define index strchr
94#endif
95#endif
96
97#ifndef HAS_STRCHR
98#ifndef strchr
99#define strchr index
100#endif
101#endif
102
103#ifndef HAS_INDEX
104#ifndef rindex
105#define rindex strrchr
106#endif
107#endif
108
109#ifndef HAS_STRCHR
110#ifndef strrchr
111#define strrchr rindex
112#endif
113#endif
114
115#ifndef HAS_STRCOLL
116#undef strcoll
117#define strcoll strcmp
118#endif
119
120#if !defined(WIN32) && !defined(HAS_STRXFRM)
121#define strncoll strncmp
122#define strncasecoll strncasecmp
123#define strcasecoll strcasecmp
124#endif
125
126#endif
Note: See TracBrowser for help on using the browser.