Fixed building tests with Visual Studio 2008
This commit is contained in:
parent
1a92f18381
commit
49bf362b10
8 changed files with 550 additions and 26 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue