delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/02/12/09:24:33

Message-Id: <199902121424.OAA33988@out2.ibm.net>
From: "Mark E." <snowball3 AT usa DOT net>
To: djgpp-workers AT delorie DOT com
Date: Fri, 12 Feb 1999 09:24:23 -0500
MIME-Version: 1.0
Subject: patch for stddef.h
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com

After going back and forth with the libstdc++ v3 guys, I don't appear to 
be getting my way. According to the c9x fcd, the types listed as being 
defined in stddef.h don't include wint_t. But they insist that gcc's 
stddef.h includes wint_t and if your stddef.h doesn't include it, too bad. 
So, here's a patch to add a definition of wint_t to stddef.h in the non-
Ansi, non-Posix section.

*** stddef.h.orig	Wed Dec  7 02:02:08 1994
--- stddef.h	Fri Feb 12 09:16:10 1999
***************
*** 24,31 ****
--- 24,35 ----
  #ifndef __STRICT_ANSI__
  
  #ifndef _POSIX_SOURCE
  
+ __DJ_wint_t
+ #undef __DJ_wint_t
+ #define __DJ_wint_t
+ 
  #endif /* !_POSIX_SOURCE */
  #endif /* !__STRICT_ANSI__ */
  #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  

--- 
Mark Elbrecht snowball3 AT usa DOT net
http://members.xoom.com/snowball3/

- Raw text -


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