PennMUSH Community

root/1.8.3/trunk/win32/confmagic.h

Revision 1167, 1.4 kB (checked in by shawnw, 8 months ago)

Merge devel into trunk for p6 release

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 #define inline __inline
16
17 /*
18  * (which isn't exportable from the U.S.), then don't encrypt
19  */
20 #ifndef HAS_CRYPT
21 #define crypt(s,t) (s)
22 #endif
23
24 /* You better get with the 90's if this isn't true! */
25 #define HAS_IEEE_MATH
26
27 #ifndef HAVE_SIGCHLD
28 #define SIGCHLD SIGCLD
29 #elif !defined(HAVE_SIGCLD)
30 #define SIGCLD  SIGCHLD
31 #endif
32
33 #ifndef HAVE_STRCOLL
34 #undef strcoll
35 #define strcoll strcmp
36 #endif
37
38 #ifndef HAVE_SNPRINTF
39 #ifdef HAVE__VSNPRINTF_S
40 #define snprintf sane_snprintf_s
41 /* Win32 needs size_t to be defined... */
42 #include <crtdefs.h>
43 int sane_snprintf_s(char *, size_t, const char *, ...);
44 #elif defined(HAVE__SNPRINTF)
45 #define snprintf _snprintf
46 #endif
47 #endif
48
49 #if !defined(HAVE_VSNPRINTF)
50 #if defined(HAVE__VSNPRINTF_S)
51 #define vsnprintf(str, size, fmt, args)  _vsnprintf_s((str), (size), \
52                               _TRUNCATE,     \
53                               (fmt), (args))
54 #elif defined(HAVE__VSNPRINTF)
55 #define vsnprintf _vsnprintf
56 #endif
57 #endif
58
59 #endif
60
Note: See TracBrowser for help on using the browser.