Mail Archives: djgpp/2001/10/17/14:34:31
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 -