root/1.8.3/branches/gc/confmagic.h

Revision 1284, 1.5 KB (checked in by shawnw, 4 months ago)

GC: Sync with p6

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>
43int 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#if defined(HAVE_POLLTS) && !defined(HAVE_PPOLL)
60/* Linux's ppoll() is identical to NetBSD's pollts() in all but name. */
61#define ppoll pollts
62#define HAVE_PPOLL
63#endif
64
65#endif
Note: See TracBrowser for help on using the browser.