Mail Archives: djgpp-workers/2000/04/26/12:12:57
Juan Manuel Guerrero wrote:
> > If the problem is with gettext from conio.c, then I think this problem
> > could be solved with less radical means.
>
> That is the reason. If you can show me a less radical solution it will be
> seriously appreciated.
What about following solution:
Replacing old gettext() prototype in <conio.h> with
(...) _borland_gettext(...);
#ifndef __GETTEXT_DEFINED
#define gettext _borland_gettext
#define __GETTEXT_DEFINED
#endif
In gettext headers:
(...) _gnu_gettext(...);
#ifndef __GETTEXT_DEFINED
#define gettext _gnu_gettext
#define __GETTEXT_DEFINED
#endif
Now if you include <conio.h>, you get Borland gettext, if
gettext header, you get GNU gettext.
Now drawback:
- If there are old Borland programs which use gettext without
including headers, they will stop working. But that could be
simply fixed.
Laurynas Biveinis
- Raw text -