root/releases/1.6/1p0/confmagic.h

Revision 57, 1.3 KB (checked in by pennmush, 3 years ago)

PennMUSH 1.6.1p0 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#ifndef HAS_MEMCPY
35#ifndef memcpy
36#define memcpy(d,s,l) bcopy((s),(d),(l))
37#endif
38#endif
39
40#ifndef HAS_RANDOM
41#ifndef random
42#ifdef HAS_LRAND48
43#define random lrand48
44#define srandom srand48
45#else
46#define random rand
47#define srandom srand
48#endif
49#endif
50#endif
51
52#ifndef HAS_INDEX
53#ifndef index
54#define index strchr
55#endif
56#endif
57
58#ifndef HAS_STRCHR
59#ifndef strchr
60#define strchr index
61#endif
62#endif
63
64#ifndef HAS_STRCHR
65#ifndef strrchr
66#define strrchr rindex
67#endif
68#endif
69
70#endif
Note: See TracBrowser for help on using the browser.