pike.git / src / global.h

version» Context lines:

pike.git/src/global.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: global.h,v 1.115 2009/03/18 09:27:52 grubba Exp $ + || $Id: global.h,v 1.116 2009/03/19 11:46:28 grubba Exp $   */      #ifndef GLOBAL_H   #define GLOBAL_H      /* Mingw32 workarounds */   #if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)   #define __NT__   #endif   
pike.git/src/global.h:91:   #define STRUCT_TIMEVAL_DECLARED   struct timeval;   #endif      #ifndef CONFIGURE_TEST   /* machine.h doesn't exist if we're included from a configure test    * program. In that case these defines will already be included. */   #include "machine.h"   #endif    - #ifndef HAVE_STRUCT_IOVEC - #define HAVE_STRUCT_IOVEC - struct iovec { -  void *iov_base; -  size_t iov_len; - }; - #endif /* !HAVE_STRUCT_IOVEC */ -  +    /* Some identifiers used as flags in the machine.h defines. */   #define PIKE_YES 1   #define PIKE_NO 2   #define PIKE_UNKNOWN 3      /* 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)
pike.git/src/global.h:504: Inside #if defined(__ECL)
  /* Some functions/macros used to avoid loss of precision warnings. */   #ifdef __ECL   static INLINE long PTRDIFF_T_TO_LONG(ptrdiff_t x)   {    return DO_NOT_WARN((long)x);   }   #else /* !__ECL */   #define PTRDIFF_T_TO_LONG(x) ((long)(x))   #endif /* __ECL */    + #ifndef HAVE_STRUCT_IOVEC + #define HAVE_STRUCT_IOVEC + struct iovec { +  void *iov_base; +  size_t iov_len; + }; + #endif /* !HAVE_STRUCT_IOVEC */ +    #include "port.h"   #include "dmalloc.h"      /* Either this include must go or the include of threads.h in    * pike_cpulib.h. Otherwise we get pesky include loops. */   /* #include "pike_cpulib.h" */      #ifdef BUFSIZ   #define PROT_STDIO(x) PROT(x)   #else