delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/07/05:45:04

Message-ID: <19990307114430.A1107@esmeralda.gerwinski.de>
Date: Sun, 7 Mar 1999 11:44:30 +0100
From: Peter Gerwinski <peter AT gerwinski DOT de>
To: djgpp AT delorie DOT com
Cc: Frank Heckenbach <frank AT tim DOT gerwinski DOT de>
Subject: Patch to simplify cross-building of GCC
Mime-Version: 1.0
X-Mailer: Mutt 0.93.1i
X-Counter: 860
Reply-To: djgpp AT delorie DOT com

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.

Happy hacking,

    Peter

-- 
Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/
Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-19990118
  PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75
*** Vote against SPAM! ********* http://www.politik-digital.de/spam/ ***

diff -r -c sys/djtypes.h~ sys/djtypes.h
*** sys/djtypes.h~	Wed Sep  9 16:56:26 1998
--- sys/djtypes.h	Wed Mar  3 20:03:59 1999
***************
*** 7,17 ****
--- 7,27 ----
  #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++ */

- Raw text -


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