www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/06/10:48:34

Message-Id: <199904061447.OAA59644@out1.ibm.net>
From: "Mark E." <snowball3 AT usa DOT net>
To: djgpp-workers AT delorie DOT com
Date: Tue, 6 Apr 1999 10:47:57 -0400
MIME-Version: 1.0
Subject: locale.h patch
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com

This is the locale.h patch I had paired with the tcsetatr.c patch. This 
fixes the redefinition error when including <locale.h> in C++.

*** include/locale.h.orig	Sun Aug 31 16:43:14 1997
--- include/locale.h	Tue Mar 30 18:30:34 1999
***************
*** 15,20 ****
--- 15,23 ----
  #define LC_MONETARY	0x04
  #define LC_NUMERIC	0x08
  #define LC_TIME		0x10
+ 
+ /* Some programs think they know better... */
+ #undef NULL
  #define NULL		0
  
  struct lconv {

--- 
Mark Elbrecht, snowball3 AT usa DOT net
http://snowball.digitalspace.net/

- Raw text -


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