Branch: Tag:

2004-05-11

2004-05-11 08:48:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved WIN32 setup.

Rev: src/global.h:1.98

2:   || 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.97 2004/05/10 21:45:13 agehall Exp $ + || $Id: global.h,v 1.98 2004/05/11 08:48:16 grubba Exp $   */      #ifndef GLOBAL_H
16:   #ifndef _LARGEFILE_SOURCE   # define _FILE_OFFSET_BITS 64   # define _LARGEFILE_SOURCE - # define _LARGEFILE64_SOURCE 1 + /* # define _LARGEFILE64_SOURCE 1 */ /* This one is for explicit 64bit. */   #endif      /* HPUX needs these too... */
45:   #define WIN32 100 /* WinNT 1.0 */   #endif    - /* Mingw32 needs this to define stuff correctly. */ - #ifdef _WIN32_WINDOWS + /* We want WinNT 5.0 API's if available. */ + #if !defined(_WIN32_WINDOWS) || (_WIN32_WINDOWS < 0x500)   #undef _WIN32_WINDOWS -  + #define _WIN32_WINDOWS 0x0500   #endif - #ifdef _WIN32_WINNT +  + #if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x500)   #undef _WIN32_WINNT -  + #define _WIN32_WINNT 0x0500   #endif    - #define _WIN32_WINDOWS 0x0500 - #define _WIN32_WINNT 0x0500 -  +    #endif /* __NT__ */      /*