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

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