ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2000/11/22/16:23:44

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Message-ID: <3A1C3784.9DEF7B94@ece.gatech.edu>
Date: Wed, 22 Nov 2000 16:15:48 -0500
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: Carlos Puig <cpuig AT home DOT com>
CC: cygwin-apps AT cygwin DOT com
Subject: Re: Texinfo-4.0
References: <Pine DOT LNX DOT 4 DOT 30 DOT 0011221237210 DOT 10055-100000 AT c445745-a DOT stcla1 DOT sfba DOT home DOT com>

Carlos Puig wrote:
> 
> Note: One small patch is needed to make texinfo-4.0 under cygwin.  On line 106
> of the generated makeinfo/Makefile, add -DWIN32 as follows:
> 
>     DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I..
> 
> to
> 
>     DEFS = -DWIN32 -DHAVE_CONFIG_H -I. -I$(srcdir) -I..

AArrrrggghhh!!!  No.  Don't rely on -DWIN32 -- it often turns on too
many windows specific hacks, and leads to huge troubles later on. 
Cygwin is not windows.  What you should do, is inspect every .h and .c
file, looking for '#ifdef WIN32'.  If the block of code 'turned on' by
the WIN32 flag is truly necessary on cygwin, then change the '#ifdef
WIN32' to 

  #if defined(WIN32) || defined(__CYGWIN__)

If the block of code 'turned on' by the WIN32 flag is NOT needed on
cygwin, then change the '#ifdef WIN32'
 
  #if defined(WIN32) && !defined(__CYGWIN__)

--Chuck

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019