Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008

This commit is contained in:
Sam Lantinga
2011-01-24 15:46:11 -08:00
parent 5bb9535909
commit ec39fffe84
42 changed files with 1137 additions and 3437 deletions

View File

@@ -50,7 +50,7 @@ on the assertion line and not in some random guts of SDL, and so each
assert can have unique static variables associated with it.
*/
#if defined(_MSC_VER)
#if defined(_MSC_VER) && !defined(_WIN32_WCE)
#include <intrin.h>
#define SDL_TriggerBreakpoint() __debugbreak()
#elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))

View File

@@ -58,7 +58,7 @@
/* Need to do this here because intrin.h has C++ code in it */
/* Visual Studio 2005 has a bug where intrin.h conflicts with winnt.h */
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
#if defined(_MSC_VER) && (_MSC_VER >= 1500) && !defined(_WIN32_WCE)
#include <intrin.h>
#define HAVE_MSC_ATOMICS
#endif

View File

@@ -65,7 +65,7 @@ extern "C" {
/*@{*/
/* Platform */
#ifdef __WINDOWS__
#ifdef __WIN32__
#undef __WIN32__
#define __WIN32__ 1
#endif

View File

@@ -20,8 +20,8 @@
slouken@libsdl.org
*/
#ifndef _SDL_config_windows2_h
#define _SDL_config_windows2_h
#ifndef _SDL_config_windows_h
#define _SDL_config_windows_h
#include "SDL_platform.h"
@@ -178,7 +178,11 @@ typedef unsigned int uintptr_t;
#define SDL_VIDEO_DRIVER_DUMMY 1
#define SDL_VIDEO_DRIVER_WINDOWS 1
#ifdef _WIN32_WCE
#define SDL_VIDEO_RENDER_GAPI 1
#else
#define SDL_VIDEO_RENDER_D3D 1
#endif
#define SDL_VIDEO_RENDER_GDI 1
/* Enable OpenGL support */
@@ -196,4 +200,4 @@ typedef unsigned int uintptr_t;
#define SDL_ASSEMBLY_ROUTINES 1
#endif
#endif /* _SDL_config_windows2_h */
#endif /* _SDL_config_windows_h */

View File

@@ -31,7 +31,7 @@
* Redefine main() on some platforms so that it is called by SDL.
*/
#if defined(__WINDOWS__) || \
#if defined(__WIN32__) || \
(defined(__MWERKS__) && !defined(__BEOS__)) || \
defined(__SYMBIAN32__) || defined(__IPHONEOS__) || \
defined(__ANDROID__)
@@ -66,7 +66,7 @@ extern C_LINKAGE int SDL_main(int argc, char *argv[]);
/* From the SDL library code -- needed for registering the app on Win32 */
#ifdef __WINDOWS__
#ifdef __WIN32__
#include "begin_code.h"
#ifdef __cplusplus

View File

@@ -31,7 +31,7 @@
#include "SDL_config.h"
#ifdef __WINDOWS__
#ifdef __WIN32__
#define WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX /* Don't defined min() and max() */

View File

@@ -125,8 +125,8 @@
#define __SOLARIS__ 1
#endif
#if defined(WIN32) || defined(_WIN32)
#undef __WINDOWS__
#define __WINDOWS__ 1
#undef __WIN32__
#define __WIN32__ 1
#endif
#if defined(__NDS__)

View File

@@ -83,7 +83,7 @@ typedef struct SDL_RWops
Uint32 type;
union
{
#ifdef __WINDOWS__
#ifdef __WIN32__
struct
{
SDL_bool append;

View File

@@ -55,7 +55,7 @@ typedef unsigned long SDL_threadID;
*/
typedef int (SDLCALL * SDL_ThreadFunction) (void *data);
#if defined(__WINDOWS__) && !defined(HAVE_LIBC)
#if defined(__WIN32__) && !defined(HAVE_LIBC)
/**
* \file SDL_thread.h
*

View File

@@ -42,7 +42,7 @@
# else
# define DECLSPEC __declspec(export)
# endif
# elif defined(__WINDOWS__)
# elif defined(__WIN32__)
# ifdef __BORLANDC__
# ifdef BUILD_SDL
# define DECLSPEC
@@ -63,7 +63,7 @@
/* By default SDL uses the C calling convention */
#ifndef SDLCALL
#if defined(__WINDOWS__) && !defined(__GNUC__)
#if defined(__WIN32__) && !defined(__GNUC__)
#define SDLCALL __cdecl
#else
#define SDLCALL