Mercurial > mplayer.hg
annotate mangle.h @ 9278:caea8ed36b48
The reason why mplayer crashes (in some cases) when using x11
output and -wid (>0) parameter is this:
Mplayer by default creates a colormap using DirectColor visual. If the
window given to mplayer uses TrueColor visual there will be an error
when mplayer sets the colormap for the window. This patch
modifies mplayer to use TrueColor visual if the window given to mplayer
uses TrueColor. Another solution is to make sure that the window given to
mplayer is created using DirectColor visual if it is supported by the
display.
Jouni Tulkki <jitulkki@cc.hut.fi>
author | arpi |
---|---|
date | Tue, 04 Feb 2003 18:31:44 +0000 |
parents | 9d55352cea20 |
children | 4e2d477981e2 |
rev | line source |
---|---|
4243 | 1 /* mangle.h - This file has some CPP macros to deal with different symbol |
2 * mangling across binary formats. | |
3 * (c)2002 by Felix Buenemann <atmosfear at users.sourceforge.net> | |
4 * File licensed under the GPL, see http://www.fsf.org/ for more info. | |
5 */ | |
6 | |
7 #ifndef __MANGLE_H | |
8 #define __MANGLE_H | |
9 | |
10 /* Feel free to add more to the list, eg. a.out IMO */ | |
6826
a8caf30732de
Flush from my local tree, probably more future safe mangle decision of OpenBSD, in case they switch over to ELF.
atmos4
parents:
5872
diff
changeset
|
11 #if defined(__CYGWIN__) || defined(__OS2__) || \ |
8249 | 12 (defined(__OpenBSD__) && !defined(__ELF__)) |
4243 | 13 #define MANGLE(a) "_" #a |
14 #else | |
15 #define MANGLE(a) #a | |
16 #endif | |
17 | |
18 #endif /* !__MANGLE_H */ | |
19 |