Re: 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

OK, I made the change in the CVS version.
-- 
     Irene.

Received on Tuesday, 2 May 2000 07:02:41 UTC