W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2000

Not including wchar.h if it isn't used [patch]

From: Don Croyle <croyle@gelemna.ft-wayne.in.us>
Date: 30 Apr 2000 03:42:26 -0500
To: www-amaya@w3.org
Message-ID: <86u2gk9dzh.fsf@emerson.gelemna.ft-wayne.in.us>
It looks like the contents of wchar.h are only used if _I18N_ is
defined.  This patch lets me compile Amaya on FreeBSD without
implementing that part of SUSv2 myself.  Which I'm working on....

--- thotlib/include/ustring.h.orig	Sat Apr 29 07:22:29 2000
+++ thotlib/include/ustring.h	Sat Apr 29 07:24:07 2000
@@ -7,7 +7,9 @@
 #include <windows.h>
 #endif /* _WINDOWS */
 
+#ifdef _I18N_
 #include <wchar.h>
+#endif /* _I18N_ */
 
 #ifdef _WINDOWS
 #define strncasecmp _strnicmp

-- 
I've always wanted to be a dilettante, but I've never quite been ready
to make the commitment.
Received on Sunday, 30 April 2000 04:43:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 April 2014 11:01:34 UTC