delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/04/26/12:12:57

Message-ID: <39071003.9C2BB55D@softhome.net>
Date: Wed, 26 Apr 2000 18:49:23 +0300
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.72 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: ANNOUNCE: DJGPP port of GNU Gettext 0.10.35
References: <1FCF05F5782 AT HRZ1 DOT hrz DOT tu-darmstadt DOT de>
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019