From 78e1621e5242ce3fec76ae86f2147775eedf2bfe Mon Sep 17 00:00:00 2001 From: Ronald Reagan Date: Thu, 13 Nov 2014 18:00:35 -0800 Subject: [PATCH] Updating SDL to 1.2.15 Updates header files in source/include --- source/include/SDL.h | 2 +- source/include/SDL_active.h | 2 +- source/include/SDL_audio.h | 2 +- source/include/SDL_byteorder.h | 2 +- source/include/SDL_cdrom.h | 2 +- source/include/SDL_config.h | 2 +- source/include/SDL_config_macosx.h | 2 +- source/include/SDL_config_win32.h | 2 +- source/include/SDL_copying.h | 2 +- source/include/SDL_cpuinfo.h | 2 +- source/include/SDL_endian.h | 17 +++++++++++------ source/include/SDL_error.h | 2 +- source/include/SDL_events.h | 2 +- source/include/SDL_getenv.h | 2 +- source/include/SDL_joystick.h | 2 +- source/include/SDL_keyboard.h | 2 +- source/include/SDL_keysym.h | 2 +- source/include/SDL_loadso.h | 2 +- source/include/SDL_main.h | 2 +- source/include/SDL_mouse.h | 2 +- source/include/SDL_mutex.h | 2 +- source/include/SDL_name.h | 0 source/include/SDL_opengl.h | 16 +++++++++++++++- source/include/SDL_platform.h | 2 +- source/include/SDL_quit.h | 2 +- source/include/SDL_rwops.h | 2 +- source/include/SDL_stdinc.h | 2 +- source/include/SDL_syswm.h | 9 +++++---- source/include/SDL_thread.h | 7 +------ source/include/SDL_timer.h | 2 +- source/include/SDL_types.h | 2 +- source/include/SDL_version.h | 4 ++-- source/include/SDL_video.h | 2 +- source/include/begin_code.h | 9 +++++++-- source/include/close_code.h | 2 +- 35 files changed, 69 insertions(+), 49 deletions(-) mode change 100755 => 100644 source/include/SDL.h mode change 100755 => 100644 source/include/SDL_active.h mode change 100755 => 100644 source/include/SDL_audio.h mode change 100755 => 100644 source/include/SDL_byteorder.h mode change 100755 => 100644 source/include/SDL_cdrom.h mode change 100755 => 100644 source/include/SDL_copying.h mode change 100755 => 100644 source/include/SDL_cpuinfo.h mode change 100755 => 100644 source/include/SDL_endian.h mode change 100755 => 100644 source/include/SDL_error.h mode change 100755 => 100644 source/include/SDL_events.h mode change 100755 => 100644 source/include/SDL_getenv.h mode change 100755 => 100644 source/include/SDL_joystick.h mode change 100755 => 100644 source/include/SDL_keyboard.h mode change 100755 => 100644 source/include/SDL_keysym.h mode change 100755 => 100644 source/include/SDL_loadso.h mode change 100755 => 100644 source/include/SDL_main.h mode change 100755 => 100644 source/include/SDL_mouse.h mode change 100755 => 100644 source/include/SDL_mutex.h mode change 100755 => 100644 source/include/SDL_name.h mode change 100755 => 100644 source/include/SDL_opengl.h mode change 100755 => 100644 source/include/SDL_quit.h mode change 100755 => 100644 source/include/SDL_rwops.h mode change 100755 => 100644 source/include/SDL_syswm.h mode change 100755 => 100644 source/include/SDL_thread.h mode change 100755 => 100644 source/include/SDL_timer.h mode change 100755 => 100644 source/include/SDL_types.h mode change 100755 => 100644 source/include/SDL_version.h mode change 100755 => 100644 source/include/SDL_video.h mode change 100755 => 100644 source/include/begin_code.h mode change 100755 => 100644 source/include/close_code.h diff --git a/source/include/SDL.h b/source/include/SDL.h old mode 100755 new mode 100644 index 119ed7ff..6087b7cd --- a/source/include/SDL.h +++ b/source/include/SDL.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_active.h b/source/include/SDL_active.h old mode 100755 new mode 100644 index 0ae92f2d..cd854e89 --- a/source/include/SDL_active.h +++ b/source/include/SDL_active.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_audio.h b/source/include/SDL_audio.h old mode 100755 new mode 100644 index 3a8e7fa8..e879c989 --- a/source/include/SDL_audio.h +++ b/source/include/SDL_audio.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_byteorder.h b/source/include/SDL_byteorder.h old mode 100755 new mode 100644 index 9b93cd69..47332c3d --- a/source/include/SDL_byteorder.h +++ b/source/include/SDL_byteorder.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_cdrom.h b/source/include/SDL_cdrom.h old mode 100755 new mode 100644 index fff5cfa1..febb19dc --- a/source/include/SDL_cdrom.h +++ b/source/include/SDL_cdrom.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_config.h b/source/include/SDL_config.h index a5081016..09ba38a7 100644 --- a/source/include/SDL_config.h +++ b/source/include/SDL_config.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_config_macosx.h b/source/include/SDL_config_macosx.h index 295b8724..84be6177 100644 --- a/source/include/SDL_config_macosx.h +++ b/source/include/SDL_config_macosx.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_config_win32.h b/source/include/SDL_config_win32.h index 6d019a8d..da2c15dd 100644 --- a/source/include/SDL_config_win32.h +++ b/source/include/SDL_config_win32.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_copying.h b/source/include/SDL_copying.h old mode 100755 new mode 100644 index 1bd6b84c..b5b64f29 --- a/source/include/SDL_copying.h +++ b/source/include/SDL_copying.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_cpuinfo.h b/source/include/SDL_cpuinfo.h old mode 100755 new mode 100644 index f4be8e03..4200d6d1 --- a/source/include/SDL_cpuinfo.h +++ b/source/include/SDL_cpuinfo.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_endian.h b/source/include/SDL_endian.h old mode 100755 new mode 100644 index f7a2e2f8..fd9fc867 --- a/source/include/SDL_endian.h +++ b/source/include/SDL_endian.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -39,6 +39,10 @@ /*@}*/ #ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */ +#ifdef __linux__ +#include +#define SDL_BYTEORDER __BYTE_ORDER +#else /* __linux __ */ #if defined(__hppa__) || \ defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \ (defined(__MIPS__) && defined(__MISPEB__)) || \ @@ -48,6 +52,7 @@ #else #define SDL_BYTEORDER SDL_LIL_ENDIAN #endif +#endif /* __linux __ */ #endif /* !SDL_BYTEORDER */ @@ -86,7 +91,7 @@ static __inline__ Uint16 SDL_Swap16(Uint16 x) __asm__("rlwimi %0,%2,8,16,23" : "=&r" (result) : "0" (x >> 8), "r" (x)); return result; } -#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) +#elif defined(__GNUC__) && (defined(__m68k__) && !defined(__mcoldfire__)) static __inline__ Uint16 SDL_Swap16(Uint16 x) { __asm__("rorw #8,%0" : "=d" (x) : "0" (x) : "cc"); @@ -94,7 +99,7 @@ static __inline__ Uint16 SDL_Swap16(Uint16 x) } #else static __inline__ Uint16 SDL_Swap16(Uint16 x) { - return((x<<8)|(x>>8)); + return SDL_static_cast(Uint16, ((x<<8)|(x>>8))); } #endif @@ -121,7 +126,7 @@ static __inline__ Uint32 SDL_Swap32(Uint32 x) __asm__("rlwimi %0,%2,24,0,7" : "=&r" (result) : "0" (result), "r" (x)); return result; } -#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) +#elif defined(__GNUC__) && (defined(__m68k__) && !defined(__mcoldfire__)) static __inline__ Uint32 SDL_Swap32(Uint32 x) { __asm__("rorw #8,%0\n\tswap %0\n\trorw #8,%0" : "=d" (x) : "0" (x) : "cc"); @@ -129,7 +134,7 @@ static __inline__ Uint32 SDL_Swap32(Uint32 x) } #else static __inline__ Uint32 SDL_Swap32(Uint32 x) { - return((x<<24)|((x<<8)&0x00FF0000)|((x>>8)&0x0000FF00)|(x>>24)); + return SDL_static_cast(Uint32, ((x<<24)|((x<<8)&0x00FF0000)|((x>>8)&0x0000FF00)|(x>>24))); } #endif @@ -166,7 +171,7 @@ static __inline__ Uint64 SDL_Swap64(Uint64 x) x = SDL_Swap32(lo); x <<= 32; x |= SDL_Swap32(hi); - return(x); + return (x); } #endif #else diff --git a/source/include/SDL_error.h b/source/include/SDL_error.h old mode 100755 new mode 100644 index b103703a..4e1cce3b --- a/source/include/SDL_error.h +++ b/source/include/SDL_error.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_events.h b/source/include/SDL_events.h old mode 100755 new mode 100644 index c94a30c9..94b42025 --- a/source/include/SDL_events.h +++ b/source/include/SDL_events.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_getenv.h b/source/include/SDL_getenv.h old mode 100755 new mode 100644 index 253ad88c..bea63007 --- a/source/include/SDL_getenv.h +++ b/source/include/SDL_getenv.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_joystick.h b/source/include/SDL_joystick.h old mode 100755 new mode 100644 index d5135c3d..708d1a9f --- a/source/include/SDL_joystick.h +++ b/source/include/SDL_joystick.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_keyboard.h b/source/include/SDL_keyboard.h old mode 100755 new mode 100644 index 7b59d24e..9d7129c5 --- a/source/include/SDL_keyboard.h +++ b/source/include/SDL_keyboard.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_keysym.h b/source/include/SDL_keysym.h old mode 100755 new mode 100644 index 90101286..f2ad12b8 --- a/source/include/SDL_keysym.h +++ b/source/include/SDL_keysym.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_loadso.h b/source/include/SDL_loadso.h old mode 100755 new mode 100644 index 45a17f9f..0c5e5362 --- a/source/include/SDL_loadso.h +++ b/source/include/SDL_loadso.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_main.h b/source/include/SDL_main.h old mode 100755 new mode 100644 index b7f6b2c8..ab50ef1e --- a/source/include/SDL_main.h +++ b/source/include/SDL_main.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_mouse.h b/source/include/SDL_mouse.h old mode 100755 new mode 100644 index a573f04e..7c563b94 --- a/source/include/SDL_mouse.h +++ b/source/include/SDL_mouse.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_mutex.h b/source/include/SDL_mutex.h old mode 100755 new mode 100644 index 920971df..c8da9b1a --- a/source/include/SDL_mutex.h +++ b/source/include/SDL_mutex.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_name.h b/source/include/SDL_name.h old mode 100755 new mode 100644 diff --git a/source/include/SDL_opengl.h b/source/include/SDL_opengl.h old mode 100755 new mode 100644 index c479a3a4..3d791d69 --- a/source/include/SDL_opengl.h +++ b/source/include/SDL_opengl.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -3108,21 +3108,35 @@ typedef char GLchar; /* native character */ #ifndef GL_VERSION_1_5 /* GL types for handling large vertex buffer objects */ +#ifdef __APPLE__ +typedef long GLintptr; +typedef long GLsizeiptr; +#else typedef ptrdiff_t GLintptr; typedef ptrdiff_t GLsizeiptr; #endif +#endif #ifndef GL_ARB_vertex_buffer_object /* GL types for handling large vertex buffer objects */ +#ifdef __APPLE__ +typedef long GLintptrARB; +typedef long GLsizeiptrARB; +#else typedef ptrdiff_t GLintptrARB; typedef ptrdiff_t GLsizeiptrARB; #endif +#endif #ifndef GL_ARB_shader_objects /* GL types for handling shader object handles and program/shader text */ typedef char GLcharARB; /* native character */ +#if defined(__APPLE__) +typedef void *GLhandleARB; /* shader object handle */ +#else typedef unsigned int GLhandleARB; /* shader object handle */ #endif +#endif /* GL types for "half" precision (s10e5) float data in host memory */ #ifndef GL_ARB_half_float_pixel diff --git a/source/include/SDL_platform.h b/source/include/SDL_platform.h index 11d86736..48540a85 100644 --- a/source/include/SDL_platform.h +++ b/source/include/SDL_platform.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_quit.h b/source/include/SDL_quit.h old mode 100755 new mode 100644 index 6d82e7e0..abd2ec6c --- a/source/include/SDL_quit.h +++ b/source/include/SDL_quit.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_rwops.h b/source/include/SDL_rwops.h old mode 100755 new mode 100644 index a450119f..98361d7e --- a/source/include/SDL_rwops.h +++ b/source/include/SDL_rwops.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_stdinc.h b/source/include/SDL_stdinc.h index e1f85fb7..35a4fdde 100644 --- a/source/include/SDL_stdinc.h +++ b/source/include/SDL_stdinc.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_syswm.h b/source/include/SDL_syswm.h old mode 100755 new mode 100644 index 716dddcb..78433c6a --- a/source/include/SDL_syswm.h +++ b/source/include/SDL_syswm.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -203,12 +203,13 @@ typedef struct SDL_SysWMinfo { /** * This function gives you custom hooks into the window manager information. * It fills the structure pointed to by 'info' with custom information and - * returns 1 if the function is implemented. If it's not implemented, or - * the version member of the 'info' structure is invalid, it returns 0. + * returns 0 if the function is not implemented, 1 if the function is + * implemented and no error occurred, and -1 if the version member of + * the 'info' structure is not filled in or not supported. * * You typically use this function like this: * @code - * SDL_SysWMInfo info; + * SDL_SysWMinfo info; * SDL_VERSION(&info.version); * if ( SDL_GetWMInfo(&info) ) { ... } * @endcode diff --git a/source/include/SDL_thread.h b/source/include/SDL_thread.h old mode 100755 new mode 100644 index 1ca9a1bc..9ebe00ed --- a/source/include/SDL_thread.h +++ b/source/include/SDL_thread.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -68,11 +68,6 @@ typedef struct SDL_Thread SDL_Thread; #ifdef __OS2__ typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); typedef void (*pfnSDL_CurrentEndThread)(void); -#elif __GNUC__ -typedef unsigned long (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, - unsigned (__stdcall *func)(void *), void *arg, - unsigned, unsigned *threadID); -typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); #else typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, unsigned (__stdcall *func)(void *), void *arg, diff --git a/source/include/SDL_timer.h b/source/include/SDL_timer.h old mode 100755 new mode 100644 index d7cd0246..d764d5f3 --- a/source/include/SDL_timer.h +++ b/source/include/SDL_timer.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_types.h b/source/include/SDL_types.h old mode 100755 new mode 100644 index cfa35236..79d8b28d --- a/source/include/SDL_types.h +++ b/source/include/SDL_types.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/SDL_version.h b/source/include/SDL_version.h old mode 100755 new mode 100644 index fa02c3f6..fdc17c64 --- a/source/include/SDL_version.h +++ b/source/include/SDL_version.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -41,7 +41,7 @@ extern "C" { /*@{*/ #define SDL_MAJOR_VERSION 1 #define SDL_MINOR_VERSION 2 -#define SDL_PATCHLEVEL 14 +#define SDL_PATCHLEVEL 15 /*@}*/ typedef struct SDL_version { diff --git a/source/include/SDL_video.h b/source/include/SDL_video.h old mode 100755 new mode 100644 index 8f7f3052..f9c4e070 --- a/source/include/SDL_video.h +++ b/source/include/SDL_video.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/source/include/begin_code.h b/source/include/begin_code.h old mode 100755 new mode 100644 index 22748090..27e2f7bc --- a/source/include/begin_code.h +++ b/source/include/begin_code.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -43,7 +43,7 @@ #ifndef DECLSPEC # if defined(__BEOS__) || defined(__HAIKU__) # if defined(__GNUC__) -# define DECLSPEC __declspec(dllexport) +# define DECLSPEC # else # define DECLSPEC __declspec(export) # endif @@ -132,7 +132,12 @@ #ifdef __BORLANDC__ #pragma nopackwarning #endif +#ifdef _M_X64 +/* Use 8-byte alignment on 64-bit architectures, so pointers are aligned */ +#pragma pack(push,8) +#else #pragma pack(push,4) +#endif #elif (defined(__MWERKS__) && defined(__MACOS__)) #pragma options align=mac68k4byte #pragma enumsalwaysint on diff --git a/source/include/close_code.h b/source/include/close_code.h old mode 100755 new mode 100644 index 46a07208..19a00246 --- a/source/include/close_code.h +++ b/source/include/close_code.h @@ -1,6 +1,6 @@ /* SDL - Simple DirectMedia Layer - Copyright (C) 1997-2009 Sam Lantinga + Copyright (C) 1997-2012 Sam Lantinga This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public