<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=US-ASCII">
<META content="MSHTML 6.00.2745.2800" name=GENERATOR></HEAD>
<BODY id=role_body style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial"
bottomMargin=7 leftMargin=7 topMargin=7 rightMargin=7>
<DIV><SPAN class=147202920-15012006>should we use MSWINDOWS instead especailly
as thats what borland seems to be using for windows now (in addition to the more
specific WIN32).</SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT
face=Tahoma>-----Original Message-----<BR><B>From:</B>
fpc-devel-bounces@lists.freepascal.org
[mailto:fpc-devel-bounces@lists.freepascal.org]<B>On Behalf Of
</B>DSTRODT@aol.com<BR><B>Sent:</B> 15 January 2006 20:14<BR><B>To:</B>
fpc-devel@lists.freepascal.org<BR><B>Subject:</B> [fpc-devel] Problems with
WINDOWS define (Revision 2291)<BR><BR></FONT></DIV><FONT id=role_document
face=Arial>
<DIV>Revision 2291 adds a WINDOWS define for all Win platforms. I'm sure
Florian had a very good reason for doing this but it seems to cause some
problems for TP-compatible programs which already have some sort of mysterious
meaning attached to that define (specifically, unzip, plex and pyacc). The
following patch corrects this problem. I see that Peter fixed unzip with
revision 2299 but that is a pretty extensive patch. Mine is much smaller and
takes a simpler approach.</DIV>
<DIV> </DIV>
<DIV>Index:
unzip.pp<BR>===================================================================<BR>---
unzip.pp (revision 2293)<BR>+++ unzip.pp (working copy)<BR>@@ -48,6
+48,9 @@<BR> <BR> {$IFDEF FPC}<BR> {$DEFINE BIT32}<BR>+
{$IFDEF WINDOWS}<BR>+ {$UNDEF WINDOWS}<BR>+
{$ENDIF}<BR> {$ENDIF}<BR> <BR> {$IFDEF OS2}<BR>Index:
plex.pas<BR>===================================================================<BR>---
plex.pas (revision 2293)<BR>+++ plex.pas (working copy)<BR>@@ -64,6
+64,11 @@<BR> {$IFDEF DPMI}<BR> {$M
32768}<BR> {$ENDIF}<BR>+{$IFDEF FPC}<BR>+ {$IFDEF
WINDOWS}<BR>+ {$UNDEF WINDOWS}<BR>+
{$ENDIF}<BR>+{$ENDIF}<BR> {$IFDEF Windows}<BR> {$M
32768,0}<BR> {$ENDIF}<BR>Index:
pyacc.pas<BR>===================================================================<BR>---
pyacc.pas (revision 2293)<BR>+++ pyacc.pas (working copy)<BR>@@
-105,6 +105,11 @@<BR> {$IFDEF DPMI}<BR> {$M
32768}<BR> {$ENDIF}<BR>+{$IFDEF FPC}<BR>+ {$IFDEF
WINDOWS}<BR>+ {$UNDEF WINDOWS}<BR>+
{$ENDIF}<BR>+{$ENDIF}<BR> {$IFDEF Windows}<BR> {$M
32768,0}<BR> {$ENDIF}</DIV>
<DIV> </DIV>
<DIV>Dave</DIV></BLOCKQUOTE></FONT></BODY></HTML>