forked from 0ad/0ad
janwas
4be0fe18a0
. major compat fixes for interoperation with wxw. . add crashlog_sender (modified version of debgrpt wxw sample). compiles but untested, will be changed heavily further improvements: . wposix no longer declares CRT functions. instead, use CRT headers.. but don't allow their (incorrect/non-POSIX) declarations to propagate to users. . split up win.cpp into wstartup, wutil, winit . extern "C" -> EXTERN_C . move sdl.* to lib/external_libraries and add png.h+zlib.h (fixes for and include of the library) This was SVN commit r5028.
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
/**
|
|
* =========================================================================
|
|
* File : sdl.h
|
|
* Project : 0 A.D.
|
|
* Description : SDL header; uses emulator on Windows, otherwise libsdl.
|
|
*
|
|
* @author Jan.Wassenberg@stud.uni-karlsruhe.de
|
|
* =========================================================================
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) 2003 Jan Wassenberg
|
|
*
|
|
* Redistribution and/or modification are also permitted under the
|
|
* terms of the GNU General Public License as published by the
|
|
* Free Software Foundation (version 2 or later, at your option).
|
|
*
|
|
* This program 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.
|
|
*/
|
|
|
|
#ifndef LIB_SDL_H__
|
|
#define LIB_SDL_H__
|
|
|
|
#include "sdl_fwd.h"
|
|
|
|
#if OS_WIN && !defined(CONFIG_NO_WSDL)
|
|
# include "lib/sysdep/win/wsdl.h"
|
|
#else
|
|
|
|
# include <SDL/SDL.h>
|
|
# include <SDL/SDL_thread.h>
|
|
# include <SDL/SDL_endian.h>
|
|
// if the compiler doesn't support inlining, this header will pull
|
|
// in static bswap routines. doesn't matter - modern compilers
|
|
// will strip them if unused, and this is more convenient than
|
|
// another header that toggles between wsdl and SDL_endian.h.
|
|
|
|
#endif
|
|
|
|
// complete definition of our forward-declared SDL_Event (see sdl_fwd.h)
|
|
struct SDL_Event_
|
|
{
|
|
SDL_Event ev;
|
|
};
|
|
|
|
#endif // LIB_SDL_H__
|