Mail Archives: djgpp/2014/08/16/15:32:44
> Date: Sat, 16 Aug 2014 21:20:37 +0200
> From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
>
> I will investigate this but it seems to be a DJGPP 2.04 issue. I will answer
> ASAP.
Thanks.
> I have also tried djdev203 and it was possible to compile it out-of-the box
> and seems to work. Neither less the emacs code expects that the library
> provides snprintf, but this is not the case for djdev203. This is also the
> case for many other GNU ports I have done lately where I had to add
> to the sources the snprintf code taken from the repository so they can
> be compiled with DJGPP 2.03.
Not sure why you needed to add snprintf, as it is already provided in
sysdep.c. In src/config.h, we have:
/* Define to 1 if you have the `snprintf' function. */
#if __DJGPP__ > 2 || __DJGPP_MINOR__ > 3
#define HAVE_SNPRINTF 1
#else
#undef HAVE_SNPRINTF
#endif
So HAVE_SNPRINTF should not be defined when building with DJGPP v2.03,
and the replacement in sysdep.c, which is enabled when HAVE_SNPRINTF
is not defined, should have worked. Can you see why it didn't work
for you?
> I got this error message:
>
> [snip]
> gcc -c -I../msdos -Demacs -I. -I../lib -O2 font.c
> font.c: In function 'font_unparse_xlfd':
> font.c:1330:9: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
These are warnings, not errors. I guess we need to add a prototype
for snprintf somewhere, to pacify the newer compilers, is that right?
Thanks for testing Emacs.
- Raw text -