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.96 2004/03/16 14:43:02 mast Exp $ + || $Id: global.h,v 1.97 2004/05/10 21:45:13 agehall Exp $   */      #ifndef GLOBAL_H   #define GLOBAL_H    - #if defined(__WINNT__) && !defined(__NT__) + /* Mingw32 workarounds */ + #if (defined(__WINNT__) || defined(__WIN32__)) && !defined(__NT__)   #define __NT__   #endif      #ifndef _LARGEFILE_SOURCE   # define _FILE_OFFSET_BITS 64   # define _LARGEFILE_SOURCE   # define _LARGEFILE64_SOURCE 1   #endif      /* HPUX needs these too... */
pike.git/src/global.h:36: Inside #if defined(__NT__)
   * we need to define this one.    */   #ifndef WIN32_LEAN_AND_MEAN   #define WIN32_LEAN_AND_MEAN   #endif      /* We also need to ensure that we get the WIN32 APIs. */   #ifndef WIN32   #define WIN32 100 /* WinNT 1.0 */   #endif +  + /* Mingw32 needs this to define stuff correctly. */ + #ifdef _WIN32_WINDOWS + #undef _WIN32_WINDOWS + #endif + #ifdef _WIN32_WINNT + #undef _WIN32_WINNT + #endif +  + #define _WIN32_WINDOWS 0x0500 + #define _WIN32_WINNT 0x0500 +    #endif /* __NT__ */      /*    * We want to use __builtin functions.    */   #ifndef __BUILTIN_VA_ARG_INCR   #define __BUILTIN_VA_ARG_INCR 1   #endif /* !__BUILTIN_VA_ARG_INCR */      /*