www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/01/09/08:13:00

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
From: pavenis AT lanet DOT lv
To: djgpp-workers AT delorie DOT com
Date: Wed, 9 Jan 2002 15:12:52 +0200
MIME-Version: 1.0
Subject: Small patch for sys/djtypes.h
Message-ID: <3C3C5DF4.28452.DD842E@localhost>
X-mailer: Pegasus Mail for Windows (v4.01)
Reply-To: djgpp-workers AT delorie DOT com

I suggest to apply the following small patch to sys/djtypes.h
for v2.03 update. It fixes problems building current CVS version
of gcc-3.1 for DJGPP. This has been in for DJGPP development 
version for a rather long time and no one objected.

I'm afraid that gcc-3.1 could be out before DJGPP v2.04 (and we may like
to make it compatible also with v2.03).

Bootstrapped this night CVS version of gcc-3.1 after applying 
this patch. 

Andris

*** djgpp/include/sys/djtypes.h~1	Tue Dec 14 06:56:16 1999
--- djgpp/include/sys/djtypes.h	Wed Jan  9 13:24:10 2002
***************
*** 12,18 ****
--- 12,26 ----
  #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;
+ 
+ /* For GCC 3.0 or later we use its builtin va_list.                       */
+ /* In most cases these definitions won't be used, because headers provided */
+ /* by GCC hide them. But we can DTRT if GCC headers are missing.           */
+ #if __GNUC__ >= 3
+ #define __DJ_va_list    typedef __builtin_va_list va_list;
+ #else
  #define __DJ_va_list	typedef void *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