pike.git / src / acconfig.h

version» Context lines:

pike.git/src/acconfig.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: acconfig.h,v 1.151 2006/07/05 19:04:21 mast Exp $ + || $Id: acconfig.h,v 1.152 2006/08/02 15:00:28 mast Exp $   */      #ifndef MACHINE_H   #define MACHINE_H      /* We must define this *always* */   #ifndef POSIX_SOURCE   #define POSIX_SOURCE   #endif   
pike.git/src/acconfig.h:602:      /* How well is OOB TCP working?    * -1 = unknown    * 0 = doesn't seem to be working at all    * 1 = very limited functionality    * 2 = should be working as long as you are cautious    * 3 = works excellently    */   #define PIKE_OOB_WORKS -1    - /* We want to use errno later */ - #ifdef _SGI_SPROC_THREADS - /* Magic define of _SGI_MP_SOURCE above might redefine errno below */ - #include <errno.h> - #if defined(HAVE_OSERROR) && !defined(errno) - #define errno (oserror()) - #endif /* HAVE_OSERROR && !errno */ - #endif /* _SGI_SPROC_THREADS */ -  - /* This macro is only provided for compatibility with -  * Windows PreRelease. Use ALIGNOF() instead! -  * (Needed for va_arg().) -  */ - #ifndef __alignof - #define __alignof(X) ((size_t)&(((struct { char ignored_ ; X fooo_; } *)0)->fooo_)) - #endif /* __alignof */ -  - #ifdef HAVE_FUNCTION_ATTRIBUTES - #define ATTRIBUTE(X) __attribute__ (X) - #else - #define ATTRIBUTE(X) - #endif -  - #ifdef HAVE_DECLSPEC - #define DECLSPEC(X) __declspec(X) - #else /* !HAVE_DECLSPEC */ - #define DECLSPEC(X) - #endif /* HAVE_DECLSPEC */ -  - #ifndef HAVE_WORKING_REALLOC_NULL - #define realloc(PTR, SZ) pike_realloc(PTR,SZ) - #endif -  - /* NOTE: -  * PIKE_CONCAT doesn't get defined if there isn't any way to -  * concatenate symbols -  */ - #ifdef HAVE_ANSI_CONCAT - #define PIKE_CONCAT(X,Y) X##Y - #define PIKE_CONCAT3(X,Y,Z) X##Y##Z - #define PIKE_CONCAT4(X,Y,Z,Q) X##Y##Z##Q - #else - #ifdef HAVE_KR_CONCAT - #define PIKE_CONCAT(X,Y) X/**/Y - #define PIKE_CONCAT3(X,Y,Z) X/**/Y/**/Z - #define PIKE_CONCAT4(X,Y,Z,Q) X/**/Y/**/Z/**/Q - #endif /* HAVE_KR_CONCAT */ - #endif /* HAVE_ANSI_CONCAT */ -  - #define TOSTR(X) #X - #define DEFINETOSTR(X) TOSTR(X) -  - /* Some identifiers used as flags in the defines above. */ - #define PIKE_YES 1 - #define PIKE_NO 2 - #define PIKE_UNKNOWN 3 -  +    #endif /* MACHINE_H */