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: References: <3BCB274A DOT 34F2631 AT inti DOT gov DOT ar> <3BCC49EC DOT 5FB4D8ED AT inti DOT gov DOT ar> <3BCD8B76 DOT 5C0CA35 AT inti DOT gov DOT ar> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 #endif #ifdef HAVE_INTL_SUPPORT #include #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 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 >#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