SDL_windows.h is no longer necessary
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401437
This commit is contained in:
parent
83090323ef
commit
883b235150
27 changed files with 59 additions and 68 deletions
|
@ -116,7 +116,8 @@ typedef struct SDL_SysWMinfo {
|
|||
} SDL_SysWMinfo;
|
||||
|
||||
#elif SDL_VIDEO_DRIVER_WINDIB || SDL_VIDEO_DRIVER_DDRAW
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
/* The windows custom event structure */
|
||||
struct SDL_SysWMmsg {
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
/*
|
||||
SDL - Simple DirectMedia Layer
|
||||
Copyright (C) 1997-2006 Sam Lantinga
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Sam Lantinga
|
||||
slouken@libsdl.org
|
||||
*/
|
||||
|
||||
#ifndef _SDL_windows_h
|
||||
#define _SDL_windows_h
|
||||
|
||||
#include "SDL_stdinc.h"
|
||||
|
||||
/* This includes only the windows headers needed by SDL, with no C runtime */
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#ifndef HAVE_LIBC
|
||||
#ifdef _MSC_VER
|
||||
#ifndef __FLTUSED__
|
||||
#define __FLTUSED__
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
__declspec(selectany) int _fltused=1;
|
||||
#endif
|
||||
#endif /* _MSC_VER */
|
||||
#endif/* !HAVE_LIBC */
|
||||
#include <windows.h>
|
||||
|
||||
#endif /* _SDL_windows_h */
|
|
@ -327,7 +327,8 @@ unsigned _System LibMain(unsigned hmod, unsigned termination)
|
|||
|
||||
#if !defined(HAVE_LIBC) || defined(_WIN32_WCE) || (defined(__WATCOMC__) && defined(BUILD_DLL))
|
||||
/* Need to include DllMain() on Windows CE and Watcom C for some reason.. */
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
BOOL APIENTRY _DllMainCRTStartup( HANDLE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
|
||||
/* Allow access to a raw mixing buffer */
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
|
||||
#include "SDL_timer.h"
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
|
||||
/* Include all of the DirectX 5.0 headers and adds any necessary tweaks */
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
#ifndef WIN32
|
||||
#define WIN32
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
|
||||
/* Functions for system-level CD-ROM audio control */
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
|
||||
#include "SDL_cdrom.h"
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
|
||||
/* Win32 MultiMedia Joystick driver, contributed by Andrei de A. Formiga */
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
#include <regstr.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
/* System dependent library loading routines */
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include "SDL_loadso.h"
|
||||
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
# define DIR_SEPERATOR TEXT("\\")
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
|
||||
#if defined(__WIN32__) && !defined(_WIN32_WCE)
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
/* Note this isn't thread-safe! */
|
||||
|
||||
|
|
|
@ -485,7 +485,8 @@ DEFAULT_MMAP_THRESHOLD default: 256K
|
|||
#endif /* _WIN32 */
|
||||
#endif /* WIN32 */
|
||||
#ifdef WIN32
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#define HAVE_MMAP 1
|
||||
#define HAVE_MORECORE 0
|
||||
#define LACKS_UNISTD_H
|
||||
|
|
|
@ -30,6 +30,14 @@
|
|||
|
||||
#if defined(_MSC_VER)
|
||||
|
||||
#ifndef __FLTUSED__
|
||||
#define __FLTUSED__
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
__declspec(selectany) int _fltused=1;
|
||||
#endif
|
||||
|
||||
/* Float to long */
|
||||
void __declspec(naked) _ftol()
|
||||
{
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
|
||||
/* Mutex functions using the Win32 API */
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include "SDL_mutex.h"
|
||||
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
|
||||
/* Semaphore functions using the Win32 API */
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include "SDL_thread.h"
|
||||
#if defined(_WIN32_WCE) && (_WIN32_WCE < 300)
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
|
||||
/* Win32 thread management routines for SDL */
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include "SDL_thread.h"
|
||||
#include "../SDL_thread_c.h"
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
typedef HANDLE SYS_ThreadHandle;
|
||||
|
||||
|
|
|
@ -28,7 +28,9 @@
|
|||
and it is not clear how to handle a mixture of WCE semaphores and normal
|
||||
events and mutexes. */
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include "win_ce_semaphore.h"
|
||||
|
||||
static SYNCHHANDLE CleanUp (SYNCHHANDLE hSynch, DWORD Flags);
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
|
||||
#include "SDL_timer.h"
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
|
||||
#include "SDL_timer.h"
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
#ifndef _SDL_lowvideo_h
|
||||
#define _SDL_lowvideo_h
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include "../SDL_sysvideo.h"
|
||||
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include "SDL_events.h"
|
||||
#include "SDL_video.h"
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include "SDL_mouse.h"
|
||||
#include "../../events/SDL_events_c.h"
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include "SDL_version.h"
|
||||
#include "SDL_video.h"
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#include "SDL_main.h"
|
||||
#include "SDL_events.h"
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
*/
|
||||
#include "SDL_config.h"
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#if defined(_WIN32_WCE)
|
||||
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
#ifndef _SDL_dibvideo_h
|
||||
#define _SDL_dibvideo_h
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
/* for PDA */
|
||||
typedef enum
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
|
||||
/* Include all of the DirectX 5.0 headers and adds any necessary tweaks */
|
||||
|
||||
#include "SDL_windows.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
#ifndef WIN32
|
||||
#define WIN32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue