> I would introduce a macro that reflects the semantics that you want to
> use in preconv.cpp. Let's call it 'getlocale'.
> 
>   #ifdef HAVE_SETLOCALE
>     #include <locale.h>
>     #define getlocale(category) setlocale(category, NULL)
>   #else
>     #define setlocale(category, locale) (void)(category, locale)
>     #define getlocale(category) ((void)(category), "C")
>   #endif

Thanks!  My final code is this:

  #ifdef HAVE_SETLOCALE
  #include <locale.h>
  #define getlocale(category) setlocale(category, NULL)
  #else
  #define LC_ALL 0
  #define LC_CTYPE 0
  #define setlocale(category, locale) (void)(category, locale)
  #define getlocale(category) ((void)(category), (char *)"C")
  #endif


     Werner


_______________________________________________
Groff mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/groff

Reply via email to