2008-12-13 12:13:48 +00:00
|
|
|
/*
|
|
|
|
* CPP macros to deal with different symbol mangling across binary formats.
|
|
|
|
*
|
2008-12-13 12:31:07 +00:00
|
|
|
* Copyright (C) 2002 Felix Buenemann <atmosfear at users.sourceforge.net>
|
2008-12-13 12:13:48 +00:00
|
|
|
*
|
|
|
|
* This file is part of MPlayer.
|
|
|
|
*
|
|
|
|
* MPlayer is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* MPlayer is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2002-01-19 04:40:21 +00:00
|
|
|
*/
|
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#ifndef MPLAYER_MANGLE_H
|
|
|
|
#define MPLAYER_MANGLE_H
|
2002-01-19 04:40:21 +00:00
|
|
|
|
2008-12-19 09:43:19 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2008-10-16 18:13:06 +00:00
|
|
|
#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300)
|
|
|
|
#define attribute_used __attribute__((used))
|
|
|
|
#else
|
|
|
|
#define attribute_used
|
|
|
|
#endif
|
|
|
|
|
2012-08-01 06:46:20 +00:00
|
|
|
#if defined(_WIN32) || defined(__APPLE__)
|
2012-07-28 22:22:13 +00:00
|
|
|
#define EXTERN_PREFIX "_"
|
|
|
|
#else
|
|
|
|
#define EXTERN_PREFIX ""
|
|
|
|
#endif
|
|
|
|
|
2009-09-04 09:50:17 +00:00
|
|
|
#if ARCH_X86_64 && defined(PIC)
|
|
|
|
#define MANGLE(a) EXTERN_PREFIX #a "(%%rip)"
|
|
|
|
#else
|
2008-12-15 13:53:07 +00:00
|
|
|
#define MANGLE(a) EXTERN_PREFIX #a
|
2009-09-04 09:50:17 +00:00
|
|
|
#endif
|
2002-01-19 04:40:21 +00:00
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#endif /* MPLAYER_MANGLE_H */
|