SDL2 for PSP
Go to file
Sam Lantinga d2ca31944f Fixed bug #943
Ozkan Sezer      2010-02-06 12:31:06 PST

Hi:

Here are some small fixes for compiling SDL against mingw-w64.
(see http://mingw-w64.sourceforge.net/ .  Despite the name, it
supports both win32 and win64.)

src/audio/windx5/directx.h and src/video/windx5/directx.h (both
SDL-1.2 and SDL-1.3.)  I get compilation errors about some union
not having a member named u1 and alike, because of other system
headers being included before this one and them already defining
DUMMYUNIONNAME and stuff. This header probably assumes that those
stuff are defined in windef.h, but mingw-w64 headers define them
in _mingw.h. Easily fixed by moving NONAMELESSUNION definition to
the top of the file.

src/thread/win32/SDL_systhread.c (both SDL-1.2 and SDL-1.3.) :
The __GNUC__ case for pfnSDL_CurrentBeginThread is 32-bit centric
because _beginthreadex returns uintptr_t, not unsigned long which
is 32 bits in win64. Changing the return type to uintptr_t fixes
it.

video/SDL_blit.h (and configure.in) (SDL-1.3-only) :  MinGW-w64
uses msvcrt version of _aligned_malloc and _aligned_free and
they are defined in intrin.h (similar to VC).  Adding proper
ifdefs fixes it. (Notes about macros to check: __MINGW32__ is
defined for both mingw.org and for mingw-w64 for both win32 and
win64, __MINGW64__ is only defined for _WIN64, so __MINGW64__
can't be used to detect mingw-w64: including _mingw.h and then
checking for __MINGW64_VERSION_MAJOR does the trick.)

SDL_win32video.h (SDL-1.3-only) :  Tweaked the VINWER definition
and location in order to avoid multiple redefinition warnings.

Hope these are useful. Thanks.
2010-03-10 15:02:58 +00:00
acinclude A better solution to making the default build optimization -O3 2009-10-11 10:38:38 +00:00
build-scripts Changed revision details to be a string (an hg changeset) instead of an int. 2010-02-28 02:07:40 -05:00
include Fixed bug #961 2010-03-09 06:07:48 +00:00
src Fixed bug #943 2010-03-10 15:02:58 +00:00
test Changed revision details to be a string (an hg changeset) instead of an int. 2010-02-28 02:07:40 -05:00
VisualC Fixed building under Visual Studio 2010-01-15 20:05:49 +00:00
VisualCE Removed outdated Dreamcast support 2009-09-19 07:21:22 +00:00
Xcode Added Xcode-iPhoneOS to make dist 2010-01-19 05:31:16 +00:00
Xcode-iPhoneOS Fixed compilation on iPhone 2010-01-21 16:12:24 +00:00
.hgignore Made an .hgignore to mostly match old svn:ignore properties. 2010-02-28 02:06:47 -05:00
.hgtags update tags 2010-02-28 09:56:32 +00:00
.indent.pro SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
autogen.sh gcc can't generate dependencies for a file that doesn't exist, so first create SDL_revision.h 2009-10-11 06:42:20 +00:00
Borland.html *** empty log message *** 2003-07-01 01:18:27 +00:00
Borland.zip *** empty log message *** 2003-07-01 01:18:27 +00:00
BUGS Merged r2977:2978 from branches/SDL-1.2: BUGS file cutdown. 2007-02-14 10:41:55 +00:00
configure.in Fixed bug #943 2010-03-10 15:02:58 +00:00
COPYING This library is now available under the LGPL 2.1, the major change of which 2006-01-30 14:27:56 +00:00
CREDITS Removed outdated Atari support 2009-09-20 04:15:19 +00:00
INSTALL Added svn checkout install step 2009-12-14 23:43:57 +00:00
Makefile.ds First pass at Ryan's assertion code, minor tweaks to come. 2010-01-13 06:47:17 +00:00
Makefile.in Fixed bug #928 2010-01-24 21:13:33 +00:00
Makefile.minimal Initial work on power subsystem for SDL 1.3. 2009-06-07 06:06:35 +00:00
Makefile.pandora Patch from David Carre: 2009-07-30 14:53:57 +00:00
Makefile.wiz Scott to slouken 2009-11-17 04:53:15 +00:00
NOTES Added notes on the next steps for SDL 1.3 2007-08-16 21:43:19 +00:00
README Removed outdated Atari support 2009-09-20 04:15:19 +00:00
README-SDL.txt Initial revision 2001-04-26 16:45:43 +00:00
README.BeOS Added a reminder on where to put libSDL.so 2006-02-18 07:21:42 +00:00
README.DirectFB DirectFB cleanups & simple window manager 2009-01-11 23:49:23 +00:00
README.HG Changed the Subversion README to Mercurial. 2010-02-28 03:23:07 -05:00
README.iphoneos Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance. 2010-01-21 06:21:52 +00:00
README.MacOSX Added information about gcc-fat.sh to README.MacOSX 2006-05-16 07:26:48 +00:00
README.pandora OpenPandora support added by David Carré 2009-05-31 11:53:12 +00:00
README.Porting Added the dummy audio driver to instructions 2006-07-26 03:57:45 +00:00
README.PS3 Merged Martin's code changes from Google Summer of Code 2009 2009-09-07 04:51:29 +00:00
README.QNX Removed references to CD-ROM support from the README files 2009-09-05 09:12:03 +00:00
README.RISCOS Removed references to CD-ROM support from the README files 2009-09-05 09:12:03 +00:00
README.Watcom Fixed bug #818 2009-12-15 20:11:29 +00:00
README.WinCE Updated Windows CE/PocketPC support...adds GAPI driver, landscape mode, 2006-01-19 08:43:00 +00:00
sdl-config.in Merged r3002:3003 from branches/SDL-1.2: libdir fix in sdl-config and SDL.spec 2007-04-01 03:28:36 +00:00
sdl.m4 pkg-config replaced sdl-config in these cases. 2009-10-11 07:12:24 +00:00
sdl.pc.in Merged fix for bug #531 from SDL 1.2 revision 3511 2008-01-01 15:26:11 +00:00
SDL.spec.in Fixed bug #928 2010-01-24 21:13:33 +00:00
TODO Migrated most of the TODO list to the SDL 1.3 Roadmap wiki 2010-02-01 02:52:19 +00:00
UNDER_CONSTRUCTION.txt SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
VisualC.html Removed newline, to make sure revision control post-commit hook is working. 2008-12-01 09:45:01 +00:00
Watcom-Win32.zip Fixed bug #818 2009-12-15 20:11:29 +00:00
WhatsNew SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00

                         Simple DirectMedia Layer

                                  (SDL)

                                Version 1.2

---
http://www.libsdl.org/

This is the Simple DirectMedia Layer, a general API that provides low
level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
and 2D framebuffer across multiple platforms.

The current version supports Linux, Windows, Windows CE, BeOS, MacOS,
Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX.
The code contains support for AIX, OSF/Tru64, RISC OS, and SymbianOS,
but these are not officially supported.

SDL is written in C, but works with C++ natively, and has bindings to
several other languages, including Ada, C#, Eiffel, Erlang, Euphoria,
Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP,
Pike, Pliant, Python, Ruby, and Smalltalk.

This library is distributed under GNU LGPL version 2, which can be
found in the file  "COPYING".  This license allows you to use SDL
freely in commercial programs as long as you link with the dynamic
library.

The best way to learn how to use SDL is to check out the header files in
the "include" subdirectory and the programs in the "test" subdirectory.
The header files and test programs are well commented and always up to date.
More documentation is available in HTML format in "docs/index.html", and
a documentation wiki is available online at:
	http://www.libsdl.org/cgi/docwiki.cgi

The test programs in the "test" subdirectory are in the public domain.

Frequently asked questions are answered online:
	http://www.libsdl.org/faq.php

If you need help with the library, or just want to discuss SDL related
issues, you can join the developers mailing list:
	http://www.libsdl.org/mailing-list.php

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)