Unconditional definitions in SDL_config_win32.h cause spurious warnings

SDL_config_win32.h is unconditionally defining ISO stdint.h types for Visual C++. Because my project uses a stdint.h/inttypes.h pair for this compiler, this causes dozens of spurious warnings like this:
i_input.c
source\win32\stdint.h(81) : warning C4142: benign redefinition of type

Without a macro available to define to tell SDL I already have these types, there is effectively no proper way to get rid of this warning. Is there any reason why defining HAVE_STDINT_H won’t get rid of these definitions? Seems like an oversight to me._________________________________________________________________
Windows Live? SkyDrive?: Store, access, and share your photos. See how.
http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009

Good point. I went ahead and added a check for this (as well as STDINT_H)

Thanks!On Fri, Jul 31, 2009 at 10:23 AM, James Haley wrote:

SDL_config_win32.h is unconditionally defining ISO stdint.h types for
Visual C++. Because my project uses a stdint.h/inttypes.h pair for this
compiler, this causes dozens of spurious warnings like this:
i_input.c
source\win32\stdint.h(81) : warning C4142: benign redefinition of type

Without a macro available to define to tell SDL I already have these types,
there is effectively no proper way to get rid of this warning. Is there any
reason why defining HAVE_STDINT_H won’t get rid of these definitions? Seems
like an oversight to me.


Windows Live? SkyDrive?: Store, access, and share your photos. See how.http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC