Feedback on SDL 1.2.11 header files

Hi all,

A couple of quickies:

This is for SDL 1.2.11 behaviour on MinGW. I have also checked the
SDL 1.2 SVN HEAD.

The SDL_config.h that came with SDL-devel-1.2.11-mingw32.tar.gz
isn’t the same one in the SVN 1.2 HEAD and did not bring in
SDL_config_win32.h. I used the SDL_config.h in SVN HEAD that loads
in platform-dependent configuration files and that worked better.

The inlined functions in SDL_stdinc.h for GNUC && i386 borks
when put in a return statement. Although most people won’t utilize
the return value, I am working on an SDL binding, and so I had to
work around this by doing something like:

static void * _SDL_memcpy (void *dst, const void *src, size_t len)
{
#if defined(GNUC) && defined(i386)
SDL_memcpy(dst, src, len);
return dst;
#elif
return SDL_memcpy(dst, src, len);
#endif
}

SDL_config_win32.h is missing HAVE_STRDUP, linking borks because
the MinGW library assumes strdup is available:

#define HAVE_STRDUP 1

at least, this is when using the SDL_config.h from SVN 1.2 HEAD on
the MinGW platform. No glitches for the other standard function calls.–
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia