Branch: Tag:

2004-05-10

2004-05-10 21:45:13 by Marcus Agehall <agehall@gmail.com>

Effort to make Pike compile on native win32 using Mingw32. This patch
does still have some problems. For example, detection of the fpclass
method under NT does not mean that the constants used are present. It
also lacks the correct translation of paths. There is still lots to be
done, but it is a start.

Rev: src/configure.in:1.832
Rev: src/fdlib.h:1.52
Rev: src/global.h:1.97
Rev: src/main.c:1.201
Rev: src/modules/system/nt.c:1.64
Rev: src/port.c:1.77
Rev: src/port.h:1.56
Rev: src/smartlink.c:1.16

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.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   
43:   #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__ */      /*