Fixed bug 3806 - Fixes for MSVC compiler warnings

Simon Hug

These are the remaining compiler warnings I see in the current tip cb049cae7c3c.

- SDL_test_log.c defines _CRT_SECURE_NO_WARNINGS without checking if it was already set.

- SDL_windowskeyboard.c converts integers to pointers without going over the (U)INT_PTR types. That bothers MSVC.
This commit is contained in:
Sam Lantinga
2017-09-08 18:26:25 -07:00
parent 0ddac338b0
commit e8059221bd
2 changed files with 7 additions and 7 deletions

View File

@@ -26,7 +26,7 @@
*/
/* quiet windows compiler warnings */
#if defined(_MSC_VER)
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
# define _CRT_SECURE_NO_WARNINGS
#endif