annotate mangle.h @ 27773:55571c85e40e

Replace typeof by __typeof__, the former is a non-portable GNU extension.
author diego
date Mon, 20 Oct 2008 09:55:38 +0000
parents 8215fb6c542c
children 4932a522100e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4243
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
1 /* mangle.h - This file has some CPP macros to deal with different symbol
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
2 * mangling across binary formats.
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
3 * (c)2002 by Felix Buenemann <atmosfear at users.sourceforge.net>
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
4 * File licensed under the GPL, see http://www.fsf.org/ for more info.
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
5 */
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
6
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25546
diff changeset
7 #ifndef MPLAYER_MANGLE_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25546
diff changeset
8 #define MPLAYER_MANGLE_H
4243
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
9
27747
8215fb6c542c Move attribute_used declaration from config.h to mangle.h where it is useful.
diego
parents: 26029
diff changeset
10 #if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300)
8215fb6c542c Move attribute_used declaration from config.h to mangle.h where it is useful.
diego
parents: 26029
diff changeset
11 #define attribute_used __attribute__((used))
8215fb6c542c Move attribute_used declaration from config.h to mangle.h where it is useful.
diego
parents: 26029
diff changeset
12 #else
8215fb6c542c Move attribute_used declaration from config.h to mangle.h where it is useful.
diego
parents: 26029
diff changeset
13 #define attribute_used
8215fb6c542c Move attribute_used declaration from config.h to mangle.h where it is useful.
diego
parents: 26029
diff changeset
14 #endif
8215fb6c542c Move attribute_used declaration from config.h to mangle.h where it is useful.
diego
parents: 26029
diff changeset
15
4243
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
16 /* Feel free to add more to the list, eg. a.out IMO */
9762
4e2d477981e2 MINGW32 port
faust3
parents: 8249
diff changeset
17 #if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__OS2__) || \
18104
7b408d60de9e add support for intel mac. mp3lib is not fixed yet.
nplourde
parents: 9762
diff changeset
18 (defined(__OpenBSD__) && !defined(__ELF__)) || defined(__APPLE__)
4243
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
19 #define MANGLE(a) "_" #a
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
20 #else
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
21 #define MANGLE(a) #a
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
22 #endif
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
23
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25546
diff changeset
24 #endif /* MPLAYER_MANGLE_H */