Sam Lantinga <slouken@libsdl.org> [Fri, 24 Feb 2006 07:26:31 +0000] rev 1422
Added pre-configured versions of SDL_config.h for various platforms
Sam Lantinga <slouken@libsdl.org> [Fri, 24 Feb 2006 06:49:31 +0000] rev 1421
testplatform replaces testtypes, testendian, and testcpuinfo
Patrice Mandin <patmandin@gmail.com> [Thu, 23 Feb 2006 21:51:10 +0000] rev 1420
Added preliminary support for MiNT /dev/mouse driver (disabled atm)
Sam Lantinga <slouken@libsdl.org> [Thu, 23 Feb 2006 04:16:08 +0000] rev 1419
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Thu, 23 Feb 2006 01:09:47 +0000] rev 1418
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Wed, 22 Feb 2006 05:01:43 +0000] rev 1417
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Wed, 22 Feb 2006 04:44:33 +0000] rev 1416
Fixed script on mingw
Sam Lantinga <slouken@libsdl.org> [Wed, 22 Feb 2006 00:33:10 +0000] rev 1415
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 22:30:43 +0000] rev 1414
ranlib needs to be run after the library is installed...
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 22:12:55 +0000] rev 1413
FIXME:
This code needs to be rewritten to reference the static data using relocatable addresses (e.g. http://www.gentoo.org/proj/en/hardened/pic-fix-guide.xml or http://nasm.sourceforge.net/doc/html/nasmdoc8.html#section-8.2)
This code currently breaks on systems with readonly text segments (hardened Linux / Intel Mac)
Patrice Mandin <patmandin@gmail.com> [Tue, 21 Feb 2006 21:45:31 +0000] rev 1412
Fixed include files
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 19:28:45 +0000] rev 1411
Fixed assembly alignment error on Intel Macs.
Do we really need 16-bit alignment here?
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 19:27:34 +0000] rev 1410
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 19:24:09 +0000] rev 1409
Fixed build warnings on Intel Mac
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 18:29:39 +0000] rev 1408
Fixed some preprocessor mangling
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 18:20:10 +0000] rev 1407
Whoops, forgot to check in this fix
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 09:14:58 +0000] rev 1406
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 09:11:53 +0000] rev 1405
Added a test case
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 08:48:12 +0000] rev 1404
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 08:47:46 +0000] rev 1403
Catch the C++ and Objective C sources too...
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 08:46:50 +0000] rev 1402
Use consistent identifiers for the various platforms we support.
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 08:34:45 +0000] rev 1401
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Tue, 21 Feb 2006 02:42:05 +0000] rev 1400
Date: Mon, 20 Feb 2006 19:54:51 -0500
From: Brian Barnes
Subject: [SDL] Fix for FSAA OS X bug -- Please fix in CVS Code
I stopped complaining and went in an fixed the bug myself :) SDL
always dies if you try to use FSAA on Mac OS X, the problem is in the
file:
SDL_QuartzGL.m
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 23:18:49 +0000] rev 1399
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 22:17:05 +0000] rev 1398
Whoops. :)
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 22:15:38 +0000] rev 1397
Added rules to build libSDLmain.a
Reverted Patrice's mint changes - you should fix the source files, not
add include paths to the build process.
Patrice Mandin <patmandin@gmail.com> [Mon, 20 Feb 2006 20:53:52 +0000] rev 1396
Add missing include directories
Patrice Mandin <patmandin@gmail.com> [Mon, 20 Feb 2006 20:53:01 +0000] rev 1395
Hum badly edited source
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 20:11:08 +0000] rev 1394
Set the install permissions correctly
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 20:08:29 +0000] rev 1393
Pass LDFLAGS to the build system
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 13:00:59 +0000] rev 1392
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 12:45:51 +0000] rev 1391
Blargle-fnargle dependencies and build rules
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 11:49:16 +0000] rev 1390
Added DESTDIR support
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 11:30:29 +0000] rev 1389
Fixed X11 library detection
Allow passing CFLAGS for the build in the environment
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 11:29:36 +0000] rev 1388
Fixed build dependencies... ugh
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 10:19:47 +0000] rev 1387
Tests require SDL 1.2.10
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 10:19:22 +0000] rev 1386
Pick the right default GL library on IRIX
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 10:18:08 +0000] rev 1385
Fixed defaults for 8 bpp visuals
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 08:49:00 +0000] rev 1384
build fixes for IRIX 6.5 - dynamic X11 loading works! :)
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 03:57:03 +0000] rev 1383
NetBSD support
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 03:11:04 +0000] rev 1382
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 02:30:15 +0000] rev 1381
On FreeBSD, alloca is defined in stdlib.h
Sam Lantinga <slouken@libsdl.org> [Mon, 20 Feb 2006 02:09:49 +0000] rev 1380
Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org> [Sun, 19 Feb 2006 23:46:34 +0000] rev 1379
Use only safe string functions
Sam Lantinga <slouken@libsdl.org> [Sun, 19 Feb 2006 23:38:57 +0000] rev 1378
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Sun, 19 Feb 2006 19:38:27 +0000] rev 1377
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Sun, 19 Feb 2006 18:52:51 +0000] rev 1376
I don't think we need aclocal anymore (comes from the automake package)
Sam Lantinga <slouken@libsdl.org> [Sun, 19 Feb 2006 18:46:58 +0000] rev 1375
sprintf should have been snprintf
Sam Lantinga <slouken@libsdl.org> [Sun, 19 Feb 2006 17:38:32 +0000] rev 1374
QuickTime depends on Carbon and ApplicationServices
Sam Lantinga <slouken@libsdl.org> [Sun, 19 Feb 2006 16:42:18 +0000] rev 1373
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Sun, 19 Feb 2006 06:02:57 +0000] rev 1372
Whoops
Sam Lantinga <slouken@libsdl.org> [Sat, 18 Feb 2006 07:21:42 +0000] rev 1371
Added a reminder on where to put libSDL.so
Sam Lantinga <slouken@libsdl.org> [Sat, 18 Feb 2006 07:11:58 +0000] rev 1370
Detect the X11 library on Solaris x86
Sam Lantinga <slouken@libsdl.org> [Sat, 18 Feb 2006 07:05:18 +0000] rev 1369
Doh! Bitten by search and replace. :)
Sam Lantinga <slouken@libsdl.org> [Sat, 18 Feb 2006 06:51:00 +0000] rev 1368
More fixes for building on BeOS
Sam Lantinga <slouken@libsdl.org> [Fri, 17 Feb 2006 08:43:23 +0000] rev 1367
Fixes for BeOS and Solaris builds
Sam Lantinga <slouken@libsdl.org> [Thu, 16 Feb 2006 23:32:39 +0000] rev 1366
spaces, not tabs. :)
Patrice Mandin <patmandin@gmail.com> [Thu, 16 Feb 2006 22:33:34 +0000] rev 1365
Add missing clause
Patrice Mandin <patmandin@gmail.com> [Thu, 16 Feb 2006 22:00:06 +0000] rev 1364
Fix typo
Sam Lantinga <slouken@libsdl.org> [Thu, 16 Feb 2006 20:17:43 +0000] rev 1363
Fixed building with cygwin
Sam Lantinga <slouken@libsdl.org> [Thu, 16 Feb 2006 10:22:28 +0000] rev 1362
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Thu, 16 Feb 2006 10:11:48 +0000] rev 1361
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org> [Fri, 10 Feb 2006 07:29:08 +0000] rev 1360
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Fri, 10 Feb 2006 07:03:22 +0000] rev 1359
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Fri, 10 Feb 2006 06:48:43 +0000] rev 1358
More header massaging... works great on Windows. ;-)
Sam Lantinga <slouken@libsdl.org> [Fri, 10 Feb 2006 03:21:39 +0000] rev 1357
Whoops, need this. :)
Sam Lantinga <slouken@libsdl.org> [Fri, 10 Feb 2006 03:19:02 +0000] rev 1356
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Fri, 10 Feb 2006 03:00:38 +0000] rev 1355
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Thu, 09 Feb 2006 09:38:05 +0000] rev 1354
Fixed build problem with SDL_string.c
Officially deprecated SDL_byteorder.h, SDL_getenv.h and SDL_types.h
Moved endian-related SDL_rwops code into SDL_rwops.c
Sam Lantinga <slouken@libsdl.org> [Thu, 09 Feb 2006 09:07:13 +0000] rev 1353
Started the process of improving configure support, and merging C types
and library support into a single header.
Sam Lantinga <slouken@libsdl.org> [Thu, 09 Feb 2006 05:46:55 +0000] rev 1352
Disable freaking autoheader. :)
Ryan C. Gordon <icculus@icculus.org> [Wed, 08 Feb 2006 20:29:12 +0000] rev 1351
Changed X11 header order so it works on Solaris.
Fixes Bugzilla #138.
--ryan.
Patrice Mandin <patmandin@gmail.com> [Wed, 08 Feb 2006 18:59:49 +0000] rev 1350
Fixes for new SDL embedded libc stuff
Sam Lantinga <slouken@libsdl.org> [Wed, 08 Feb 2006 17:23:32 +0000] rev 1349
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Wed, 08 Feb 2006 17:19:43 +0000] rev 1348
Date: Mon, 6 Feb 2006 11:41:04 -0500
From: "mystml@adinet.com.uy"
Subject: [SDL] ALT-F4 using DirectX
My game isn't getting SDL_QUIT when I press ALT-F4 using the DirectX
driver; it does get SDL_QUIT when I press the red X in the window.
I tracked this down to DX5_HandleMessage() in SDL_dx5events.c;
WM_SYSKEYDOWN is being trapped and ignored which causes Windows not to post
a WM_CLOSE, hence no SDL_QUIT is being generated.
The relevant code is this :
/* The keyboard is handled via DirectInput */
case WM_SYSKEYUP:
case WM_SYSKEYDOWN:
case WM_KEYUP:
case WM_KEYDOWN: {
/* Ignore windows keyboard messages */;
}
return(0);
If I comment the WM_SYSKEYDOWN case, it falls through DefWindowProc() and
ALT-F4 starts working again.
I'm not sure about the best way to fix this. One option is handling ALT-F4
as a particular case somehow, but doesn't sound good. Another option would
be to handle WM_SYSKEYDOWN separately and breaking instead of returning 0,
so processing falls through and goes to DefWindowProc which does The Right
Thing (TM). This seems to be the minimal change that makes ALT-F4 work and
normal keyboard input continues to work.
Does this sound reasonable? Am I overlooking anything? Do I submit a patch?
--Gabriel
Sam Lantinga <slouken@libsdl.org> [Wed, 08 Feb 2006 09:06:34 +0000] rev 1347
Check for strtod
Sam Lantinga <slouken@libsdl.org> [Wed, 08 Feb 2006 08:55:33 +0000] rev 1346
Default to build SDL without MSVCRT
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 18:36:54 +0000] rev 1345
Fixes for Visual C++ 6.0
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 17:49:40 +0000] rev 1344
G:\SDL-12-CVS\src\video\math_private.h(171) : error C4226:
nonstandard extension used : 'huge' is an obsolete keyword
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 17:46:19 +0000] rev 1343
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 12:15:46 +0000] rev 1342
Fixed it Hayashi Naoyuki's way. :)
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 12:11:33 +0000] rev 1341
Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
Ryan C. Gordon <icculus@icculus.org> [Tue, 07 Feb 2006 11:18:21 +0000] rev 1340
Faster fades when changing to/from/between fullscreen modes on Mac OS X. Also,
it doesn't show the desktop between modes anymore.
Fixes Bugzilla #100.
--ryan.
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 10:40:14 +0000] rev 1339
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 09:29:18 +0000] rev 1338
Removed uses of stdlib.h and string.h
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 07:03:29 +0000] rev 1337
Don't touch code that we brought in from other sources
Sam Lantinga <slouken@libsdl.org> [Tue, 07 Feb 2006 06:59:48 +0000] rev 1336
Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
Sam Lantinga <slouken@libsdl.org> [Mon, 06 Feb 2006 17:28:04 +0000] rev 1335
SDL_config.h will eventually be a general feature set test,
which will be useful for any program built with SDL on a given platform.
Sam Lantinga <slouken@libsdl.org> [Mon, 06 Feb 2006 17:26:47 +0000] rev 1334
Proper credit to uClibc :)
Sam Lantinga <slouken@libsdl.org> [Mon, 06 Feb 2006 08:58:44 +0000] rev 1333
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Mon, 06 Feb 2006 08:47:44 +0000] rev 1332
Update from Alan Buckley
Sam Lantinga <slouken@libsdl.org> [Mon, 06 Feb 2006 08:46:14 +0000] rev 1331
A few fixes to get this building on Linux again
Sam Lantinga <slouken@libsdl.org> [Mon, 06 Feb 2006 08:28:51 +0000] rev 1330
It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
Sam Lantinga <slouken@libsdl.org> [Sat, 04 Feb 2006 22:01:44 +0000] rev 1329
Seek back to start on error
Sam Lantinga <slouken@libsdl.org> [Sat, 04 Feb 2006 16:29:22 +0000] rev 1328
Date: Sat, 04 Feb 2006 19:47:23 +0900
From: Hayashi Naoyuki
Subject: Re: [SDL] Character Composition problem on X
The compilation fails.
cc: Error: SDL_x11events.c, line 717: In this statement, "XK_dead_hook"
is not declared. (undeclared)
ODD_keymap[XK_dead_hook&0xFF] = SDLK_COMPOSE;
-------------------^
cc: Error: SDL_x11events.c, line 718: In this statement, "XK_dead_horn"
is not declared. (undeclared)
ODD_keymap[XK_dead_horn&0xFF] = SDLK_COMPOSE;
Neither XK_dead_hook nor XK_dead_horn are defined on Tru64.
Sam Lantinga <slouken@libsdl.org> [Sat, 04 Feb 2006 08:35:11 +0000] rev 1327
Resolved bug #130
Use XFilterEvent() to handle dead-key composition under X11
Cleaned up the code in preparation for 1.3 API changes
Sam Lantinga <slouken@libsdl.org> [Fri, 03 Feb 2006 07:43:42 +0000] rev 1326
From: Hayashi Naoyuki
I tried to compile with gcc on Tru64, and got the following error.
SDL_systimer.c:45:45: error: operator '&&' has no right operand
It succeeds if changing
#if (defined _POSIX_TIMERS && _POSIX_TIMERS > 0)
to
#if (defined _POSIX_TIMERS && _POSIX_TIMERS + 0 > 0)
Sam Lantinga <slouken@libsdl.org> [Fri, 03 Feb 2006 07:39:02 +0000] rev 1325
Resolve bug #120
Use the real executable's name for the window class, if it's available.
Sam Lantinga <slouken@libsdl.org> [Fri, 03 Feb 2006 06:33:54 +0000] rev 1324
Favor using pthread_mutexattr_settype() on Linux.
Sam Lantinga <slouken@libsdl.org> [Fri, 03 Feb 2006 06:01:23 +0000] rev 1323
Fixed compile warning
Patrice Mandin <patmandin@gmail.com> [Thu, 02 Feb 2006 21:27:24 +0000] rev 1322
Update for mintlib 0.57.6 (m68k-atari-mint libc)
Sam Lantinga <slouken@libsdl.org> [Thu, 02 Feb 2006 06:26:39 +0000] rev 1321
Date: Wed, 1 Feb 2006 18:20:33 -0800
From: Eric Wing
Subject: SDL/Universal Binary updates
Hi Sam,
Attached is a big set of changes to the Xcode projects to support
Universal Binaries. I have also included .dmgs that include the
prebuilt frameworks.
Ryan, I also updated SMPEG which is also in the package.
The SDL and smpeg binaries were built against the CVS version (pulled
maybe a month ago?).
I do not have an Intel Mac to test on so I have no idea if this stuff
actually works. However, Christian Walther has been a big help in
testing 10.2.8 and 10.3.9 so I'm fairly confident we got the build
settings correct for at least PPC.
I have attempted to document the important things for producing these
Universal Binaries. Documentation is somewhat scattered through out
everything, but there is a big centralized piece of documentation in
the UniversalBinaryNotes.rtf in the SDL.dmg.
As far as Universal Binaries are concerned, the big things were:
- Build with gcc 3.3 on PPC, 4.0 on Intel.
- We couldn't get any of the MMX/SSE code to compile/link (SDL and
smpeg).
- All 3rd party dependencies had to be rebuilt as Universal
There were also a bunch of non-Universal things that have been updated:
- I converted the SDL-satellites to create .dmg's instead of .pkg
installers
- Updated all 3rd party static libraries with current versions. (I
think libpng was the most dramatic going from 1.0.? to 1.2.8 with API
breakage. I haven't found any problems so far in doing this.)
- Changed some compiler optimization settings
- Finally updated the exports list for SDL_mixer
- Tried to include a static smpeg in SDL_mixer (multiple build
variants in Xcode project now)
- Enabled Altivec in SDL (we forgot to add the flags to Xcode last time)
- More documentation
Since so many things have changed, there might be new problems
introduced. The big issue I've found so far is with SDL_mixer. As I
mentioned on the mailing list, MP3's produce an assertion failure.
And the MikMod problem reported on Bugzilla continues to persist.
There's probably a bunch of other stuff I'm forgetting. There really
were hundreds of little things I mucked with so it's hard to remember
them all.
If you have any questions, feel free to ask.
Thanks,
Eric
Ryan C. Gordon <icculus@icculus.org> [Thu, 02 Feb 2006 05:35:42 +0000] rev 1320
AAlib driver was using C runtime string functions without including string.h.
Fixes Bugzilla #131.
Ryan C. Gordon <icculus@icculus.org> [Wed, 01 Feb 2006 19:59:02 +0000] rev 1319
Logic bug in X11 Unicode input shutdown...was checking for == NULL
when it should be != NULL.
Sam Lantinga <slouken@libsdl.org> [Wed, 01 Feb 2006 09:28:42 +0000] rev 1318
Eliminate duplicate modes with different refresh rates
Sam Lantinga <slouken@libsdl.org> [Wed, 01 Feb 2006 09:01:12 +0000] rev 1317
Updated exports
Sam Lantinga <slouken@libsdl.org> [Wed, 01 Feb 2006 08:24:32 +0000] rev 1316
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Wed, 01 Feb 2006 08:17:54 +0000] rev 1315
Merged useful fixes from 1.3 branch
Ryan C. Gordon <icculus@icculus.org> [Wed, 01 Feb 2006 08:03:04 +0000] rev 1314
Fixed dynamic X11 for now, I think.
Sam Lantinga <slouken@libsdl.org> [Wed, 01 Feb 2006 07:12:14 +0000] rev 1313
*** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Wed, 01 Feb 2006 06:32:25 +0000] rev 1312
Updated copyright information and removed rcs id lines (problematic in branch merges)
I batch edited these files, so please let me know if I've accidentally removed anybody's
credit here.
Sam Lantinga <slouken@libsdl.org> [Wed, 01 Feb 2006 04:23:41 +0000] rev 1311
*** empty log message ***
Patrice Mandin <patmandin@gmail.com> [Tue, 31 Jan 2006 21:33:35 +0000] rev 1310
Add flag to post mouse button events or not, and use defined function to post them
Sam Lantinga <slouken@libsdl.org> [Tue, 31 Jan 2006 19:46:26 +0000] rev 1309
Bah, I don't know what I'm doing.
Sam Lantinga <slouken@libsdl.org> [Tue, 31 Jan 2006 19:40:25 +0000] rev 1308
Quit building the frigging F77 libtool configuration!
Sam Lantinga <slouken@libsdl.org> [Tue, 31 Jan 2006 19:09:09 +0000] rev 1307
We're no longer doing compile checks on the X11 extensions which we include.
(Resolves bug #114)
Ryan C. Gordon <icculus@icculus.org> [Tue, 31 Jan 2006 18:39:32 +0000] rev 1306
Changed references to XFree86 to Xext to match change in directory structure.
Reference Bugzilla #116.
Sam Lantinga <slouken@libsdl.org> [Tue, 31 Jan 2006 18:08:33 +0000] rev 1305
Reverted in favor of this one:
https://bugzilla.libsdl.org/attachment.cgi?id=3
Sam Lantinga <slouken@libsdl.org> [Tue, 31 Jan 2006 17:56:44 +0000] rev 1304
XFree86 directory renamed to Xext
Sam Lantinga <slouken@libsdl.org> [Tue, 31 Jan 2006 15:30:42 +0000] rev 1303
Date: Tue, 05 Jul 2005 21:43:26 +1000
From: Sean Childs
Subject: [SDL] Compiling SDL 1.2.8 with the free Borland compiler
When compiling SDL 1.2.8 with the free Borland compiler, I received this
error (there is a similar error that occurs in
src\video\windx5\sdl_dx5events.c):
Error E2342 ..\..\src\video\windib\sdl_dibevents.c 189: Type mismatch in
parameter 'lpPrevWndFunc' (wanted 'int (__stdcall *)()', got 'long
(__stdcall *)(void *,unsigned int,unsigned int,long)') in function
DIB_HandleMessage
I checked the MSDN library at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/
windowsuserinterface/windowing/windowprocedures/windowprocedurereference/wind
owprocedurefunctions/callwindowproc.asp
and it had this to say:
If STRICT is not defined, the lpPrevWndFunc parameter has the data type
FARPROC. The FARPROC type is declared as follows:
int (FAR WINAPI * FARPROC) ()
In C, the FARPROC declaration indicates a callback function that has an
unspecified parameter list. In C++, however, the empty parameter list in
the declaration indicates that a function has no parameters. This subtle
distinction can break careless code. Following is one way to handle this
situation:
#ifdef STRICT
WNDPROC MyWindowProcedure
#else
FARPROC MyWindowProcedure
#endif
...
lResult = CallWindowProc(MyWindowProcedure, ...)