Mercurial > sdl-ios-xcode
annotate src/video/x11/Makefile.am @ 1303:52b5afd7ecee
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, ...)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 31 Jan 2006 15:30:42 +0000 |
parents | 045f186426e1 |
children |
rev | line source |
---|---|
0 | 1 |
2 ## Makefile.am for SDL using the X11 video driver | |
3 | |
4 noinst_LTLIBRARIES = libvideo_x11.la | |
5 libvideo_x11_la_SOURCES = $(X11_SRCS) | |
6 | |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
0
diff
changeset
|
7 x11_lib = \"@x11_lib@\" |
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
0
diff
changeset
|
8 x11ext_lib = \"@x11ext_lib@\" |
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
0
diff
changeset
|
9 |
0 | 10 # The SDL X11 video driver sources |
11 X11_SRCS = \ | |
12 SDL_x11dga.c \ | |
13 SDL_x11dga_c.h \ | |
14 SDL_x11events.c \ | |
15 SDL_x11events_c.h \ | |
16 SDL_x11gamma.c \ | |
17 SDL_x11gamma_c.h \ | |
18 SDL_x11gl.c \ | |
19 SDL_x11gl_c.h \ | |
20 SDL_x11image.c \ | |
21 SDL_x11image_c.h \ | |
22 SDL_x11modes.c \ | |
23 SDL_x11modes_c.h \ | |
24 SDL_x11mouse.c \ | |
25 SDL_x11mouse_c.h \ | |
26 SDL_x11video.c \ | |
27 SDL_x11video.h \ | |
28 SDL_x11wm.c \ | |
29 SDL_x11wm_c.h \ | |
30 SDL_x11yuv.c \ | |
1168
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
0
diff
changeset
|
31 SDL_x11yuv_c.h \ |
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
0
diff
changeset
|
32 SDL_x11dyn.c \ |
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
0
diff
changeset
|
33 SDL_x11dyn.h \ |
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
0
diff
changeset
|
34 SDL_x11sym.h |
045f186426e1
Dynamically load X11 libraries like we currently do for alsa, esd, etc.
Ryan C. Gordon <icculus@icculus.org>
parents:
0
diff
changeset
|
35 |