File: confmagic.h

package info (click to toggle)
pennmush 1.8.0p4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,068 kB
  • ctags: 6,319
  • sloc: ansic: 68,221; sh: 7,056; perl: 1,150; makefile: 284
file content (125 lines) | stat: -rw-r--r-- 2,080 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
 * This file was produced by running metaconfig and is intended to be included
 * after config.h and after all the other needed includes have been dealt with.
 *
 * This file may be empty, and should not be edited. Rerun metaconfig instead.
 * If you wish to get rid of this magic, remove this file and rerun metaconfig
 * without the -M option.
 *
 */

#ifndef _confmagic_h_
#define _confmagic_h_

#ifndef HAS_BCOPY
#ifndef bcopy
#define bcopy(s,d,l) memcpy((d),(s),(l))
#endif
#endif

#ifndef HAS_BZERO
#ifndef bzero
#define bzero(s,l) memset((s),0,(l))
#endif
#endif

/* If your system doesn't have the crypt(3) DES encryption code,
 * (which isn't exportable from the U.S.), then don't encrypt
 */
#ifndef HAS_CRYPT
#define crypt(s,t) (s)
#endif

#ifdef HAS_HUGE_VAL
#define HUGE_DOUBLE	HUGE_VAL
#else
#ifdef HAS_HUGE
#define HUGE_DOUBLE	HUGE
#else
#ifdef HAS_MAXDOUBLE
#define HUGE_DOUBLE	MAXDOUBLE
#else
#define HUGE_DOUBLE	2000000000
#endif
#endif
#endif
#ifdef HAS_INT_MAX
#define HUGE_INT	INT_MAX
#else
#ifdef HAS_MAXINT
#define HUGE_INT	MAXINT
#else
#define HUGE_INT	2000000000
#endif
#endif

#ifndef HAS_MEMCPY
#ifndef memcpy
#define memcpy(d,s,l) bcopy((s),(d),(l))
#endif
#endif

#ifndef HAS_MEMMOVE
#ifndef memmove
#define memmove(d,s,l) bcopy((s),(d),(l))
#endif
#endif

#ifndef HAS_RANDOM
#ifndef random
#ifdef HAS_LRAND48
#define random lrand48
#define srandom srand48
#else
#ifdef HAS_RAND
#define random rand
#define srandom srand
#endif
#endif
#endif
#endif

#ifndef HAS_SIGCHLD
#define SIGCHLD	SIGCLD
#endif

#ifndef HAS_SIGCLD
#define SIGCLD	SIGCHLD
#endif

#ifndef HAS_INDEX
#ifndef index
#define index strchr
#endif
#endif

#ifndef HAS_STRCHR
#ifndef strchr
#define strchr index
#endif
#endif

#ifndef HAS_INDEX
#ifndef rindex
#define rindex strrchr
#endif
#endif

#ifndef HAS_STRCHR
#ifndef strrchr
#define strrchr rindex
#endif
#endif

#ifndef HAS_STRCOLL
#undef strcoll
#define strcoll strcmp
#endif

#if !defined(WIN32) && !defined(HAS_STRXFRM)
#define strncoll strncmp
#define strncasecoll strncasecmp
#define strcasecoll strcasecmp
#endif

#endif