Fixed building tests with Visual Studio 2008

This commit is contained in:
Sam Lantinga 2012-12-31 13:49:06 -08:00
parent 1a92f18381
commit 49bf362b10
8 changed files with 550 additions and 26 deletions

View file

@ -27,7 +27,15 @@
#include "SDL_config.h"
/* Visual Studio 2008 doesn't have stdint.h */
#if defined(_MSC_VER) && _MSC_VER <= 1500
#define UINT8_MAX ~(Uint8)0
#define UINT16_MAX ~(Uint16)0
#define UINT32_MAX ~(Uint32)0
#define UINT64_MAX ~(Uint64)0
#else
#include <stdint.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>