www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/03/09/14:31:31

Message-ID: <B0000078968@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: Peter Gerwinski <peter AT gerwinski DOT de>, djgpp-workers AT delorie DOT com
Date: Tue, 9 Mar 1999 21:31:06 +0200
MIME-Version: 1.0
Subject: Re: Patch to simplify cross-building of GCC
CC: Frank Heckenbach <frank AT tim DOT gerwinski DOT de>
In-reply-to: <19990307114430.A1107@esmeralda.gerwinski.de>
X-mailer: Pegasus Mail for Win32 (v3.02b14)
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--Message-Boundary-31230
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

On 7 Mar 99, at 11:44, Peter Gerwinski wrote:

> Hello,
> 
> while cross-building the DJGPP GNU compiler from Linux, we
> encountered some warnings.  The following patch makes them
> disappear.
> 
> Since the problems are connected with "fixed included", this
> should not affect the normal (native) DJGPP compiler.
> 

This fixes a part of problems when building egcs with DJGPP, but for more
complete removal of warnings we should do the same for wchar_t (that was
not present in DJGPP-201, but is in 2.02). This problem also appears when building
native compiler with DJGPP (not only for cross-compiler)

Below is full patch against include/sys/djtypes.h from djdev202.zip

Andris







--Message-Boundary-31230
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  djtypes.h.diff
     Date:  9 Mar 1999, 21:25
     Size:  1134 bytes.
     Type:  Text

--Message-Boundary-31230
Content-type: Application/Octet-stream; name="djtypes.h.diff"; type=Text
Content-disposition: attachment; filename="djtypes.h.diff"

*** include/sys/djtypes.h.orig	Wed Sep  9 16:56:26 1998
--- include/sys/djtypes.h	Tue Mar  9 21:22:50 1999
***************
*** 7,24 ****
--- 7,39 ----
  #define __DJ_gid_t	typedef int gid_t;
  #define __DJ_off_t	typedef int off_t;
  #define __DJ_pid_t	typedef int pid_t;
+ #ifndef _SIZE_T_DEFINED_
+ #define _SIZE_T_DEFINED_
  #define __DJ_size_t	typedef long unsigned int size_t;
+ #else
+ #define __DJ_size_t
+ #endif
  #define __DJ_ssize_t	typedef int ssize_t;
  #define __DJ_time_t	typedef unsigned int time_t;
  #define __DJ_uid_t	typedef int uid_t;
+ #ifndef _VA_LIST_DEFINED
+ #define _VA_LIST_DEFINED
  #define __DJ_va_list	typedef void *va_list;
+ #else
+ #define __DJ_va_list
+ #endif
  
  #if defined(__cplusplus) && ( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
  /* wchar_t is now a keyword in C++ */
  #define __DJ_wchar_t
  #else
  /* but remains a typedef in C */
+ #ifndef _WCHAR_T_DEFINED_
+ #define _WCHAR_T_DEFINED_
  #define __DJ_wchar_t    typedef int wchar_t;
+ #else
+ #define __DJ_wchar_t
+ #endif
  #endif
  
  #define __DJ_wint_t     typedef int wint_t;

--Message-Boundary-31230--

- Raw text -


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