delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/17/14:34:31

From: Radical DOT NetSurfer AT delorie DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: MAKEing Turbo Vision 1.1.3
Date: Wed, 17 Oct 2001 14:12:03 -0400
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <v5irst4b4ags3ed8upblv0a89j1k2e3lhv@4ax.com>
References: <im4mstk71bb1ondv81goeqsededhsiqj0b AT 4ax DOT com> <3BCB274A DOT 34F2631 AT inti DOT gov DOT ar> <j0fnst84g4o75b64184kvs3dhlvg3j5gki AT 4ax DOT com> <3BCC49EC DOT 5FB4D8ED AT inti DOT gov DOT ar> <jgoostodc3lnjfopkh72tkoer0dg08vjql AT 4ax DOT com> <3BCD8B76 DOT 5C0CA35 AT inti DOT gov DOT ar>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
X-Complaints-To: newsabuse AT supernews DOT com
Lines: 84
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Using the suggestion (hopefully correctly) I now get the following
reported from RH-IDE:

 Compiling: tdisplay.cc
 ../include/tv/intl.h(12) In file included from
../include/tv/intl.h:12,
 ../include/tv/tvconfig.h(29)                  from
../include/tv/tvconfig.h:2
 ../include/tv.h(599)                  from ../include/tv.h:599,
 ../classes/tdisplay.cc(26)                  from
../classes/tdisplay.cc:26:
 g:/djgpp/include/libintl.h(59) Error: declaration of C function `char
* gettext(const char *)' conflicts with
 g:/djgpp/include/conio.h(74) Error: previous declaration `int
gettext(int, int, int, int, void *)' here
 There were some errors

                              144 Object Files, totalling 2.7MB
(previous was: 144 object files creates totaling  2.57MB )

j:\tvision113\contrib\tvision\include\tv\intl.h
is now thus:

#ifdef FORCE_INTL_SUPPORT
#define HAVE_INTL_SUPPORT 1
#else
#include <tv/configtv.h>
#endif

#ifdef HAVE_INTL_SUPPORT

#include <libintl.h>
#ifdef __cplusplus
extern "C" {
#endif

#ifdef __DJGPP__
#undef gettext
char *gettext__(const char *);
#else
# define gettext__ __gettext
#endif

#ifdef __cplusplus
}
#endif

On Wed, 17 Oct 2001 10:45:26 -0300, salvador <salvador AT inti DOT gov DOT ar>
wrote:

>About this topic:
>
>I think collisions between old gettext and conio.h can be avoided with a single
>line modification.
>Could you (Radical.NetSurfer) Try it?:
>
>In the file include/tv/intl.h near to the begining says:
>
>..
>#include <libintl.h>
>#ifdef __cplusplus
>extern "C" {
>#endif
>
>#ifdef __DJGPP__
>char *gettext__(const char *);
>#else
>...
>
>Now make the last lines look like it:
>
>#ifdef __DJGPP__
>#undef gettext
>char *gettext__(const char *);
>#else
>
>This will undefine the gettext definition found in libintl.h. It is not really
>needed for TV programs because we use _() macro that is expanded to gettext__
>
>It doesn't interfere with gettext 0.10.39 and I think it will solve issues with
>old versions.
>
>SET

- Raw text -


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