audio: add af_lavrresample, remove old resampling filters
[mplayer2.git] / mangle.h
blobfbec0d0b928190e2bbb9d271cdad7e8703ea3a1b
1 /*
2 * CPP macros to deal with different symbol mangling across binary formats.
4 * Copyright (C) 2002 Felix Buenemann <atmosfear at users.sourceforge.net>
6 * This file is part of MPlayer.
8 * MPlayer is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * MPlayer is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef MPLAYER_MANGLE_H
24 #define MPLAYER_MANGLE_H
26 #include "config.h"
28 #if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300)
29 #define attribute_used __attribute__((used))
30 #else
31 #define attribute_used
32 #endif
34 #if defined(_WIN32) && !defined(_WIN64) || defined(__APPLE__)
35 #define EXTERN_PREFIX "_"
36 #else
37 #define EXTERN_PREFIX ""
38 #endif
40 #if ARCH_X86_64 && defined(PIC)
41 #define MANGLE(a) EXTERN_PREFIX #a "(%%rip)"
42 #else
43 #define MANGLE(a) EXTERN_PREFIX #a
44 #endif
46 #endif /* MPLAYER_MANGLE_H */