annotate mangle.h @ 28106:4932a522100e

Replace informal GPL notes by standard GPL header.
author diego
date Sat, 13 Dec 2008 12:13:48 +0000
parents 8215fb6c542c
children fc04fa771074
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28106
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
1 /*
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
2 * CPP macros to deal with different symbol mangling across binary formats.
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
3 *
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
4 * Copyright (C) 2002 by Felix Buenemann <atmosfear at users.sourceforge.net>
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
5 *
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
6 * This file is part of MPlayer.
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
7 *
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
8 * MPlayer is free software; you can redistribute it and/or modify
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
9 * it under the terms of the GNU General Public License as published by
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
11 * (at your option) any later version.
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
12 *
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
13 * MPlayer is distributed in the hope that it will be useful,
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
16 * GNU General Public License for more details.
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
17 *
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
18 * You should have received a copy of the GNU General Public License along
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
4932a522100e Replace informal GPL notes by standard GPL header.
diego
parents: 27747
diff changeset
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4243
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
21 */
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
22
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25546
diff changeset
23 #ifndef MPLAYER_MANGLE_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25546
diff changeset
24 #define MPLAYER_MANGLE_H
4243
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
25
27747
8215fb6c542c Move attribute_used declaration from config.h to mangle.h where it is useful.
diego
parents: 26029
diff changeset
26 #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
27 #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
28 #else
8215fb6c542c Move attribute_used declaration from config.h to mangle.h where it is useful.
diego
parents: 26029
diff changeset
29 #define attribute_used
8215fb6c542c Move attribute_used declaration from config.h to mangle.h where it is useful.
diego
parents: 26029
diff changeset
30 #endif
8215fb6c542c Move attribute_used declaration from config.h to mangle.h where it is useful.
diego
parents: 26029
diff changeset
31
4243
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
32 /* Feel free to add more to the list, eg. a.out IMO */
9762
4e2d477981e2 MINGW32 port
faust3
parents: 8249
diff changeset
33 #if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__OS2__) || \
18104
7b408d60de9e add support for intel mac. mp3lib is not fixed yet.
nplourde
parents: 9762
diff changeset
34 (defined(__OpenBSD__) && !defined(__ELF__)) || defined(__APPLE__)
4243
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
35 #define MANGLE(a) "_" #a
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
36 #else
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
37 #define MANGLE(a) #a
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
38 #endif
05ad38cc0338 mangle.h does symbolmangling on win32
atmos4
parents:
diff changeset
39
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25546
diff changeset
40 #endif /* MPLAYER_MANGLE_H */