~ubuntu-branches/ubuntu/feisty/avidemux/feisty

« back to all changes in this revision

Viewing changes to avidemux/ADM_lavcodec/libpostproc/mangle.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2006-12-15 17:13:20 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20061215171320-w79pvpehxx2fr217
Tags: 1:2.3.0-0.0ubuntu1
* Merge from debian-multimedia.org, remaining Ubuntu change:
  - desktop file,
  - no support for ccache and make -j.
* Closes Ubuntu: #69614.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 */
 
11
/* Use rip-relative addressing if compiling PIC code on x86-64. */
 
12
#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__OS2__) || \
 
13
   (defined(__OpenBSD__) && !defined(__ELF__))
 
14
#if defined(ARCH_X86_64) && defined(PIC)
 
15
#define MANGLE(a) "_" #a"(%%rip)"
 
16
#else
 
17
#define MANGLE(a) "_" #a
 
18
#endif
 
19
#else
 
20
#if defined(ARCH_X86_64) && defined(PIC)
 
21
#define MANGLE(a) #a"(%%rip)"
 
22
#elif defined(CONFIG_DARWIN)
 
23
#define MANGLE(a) "_" #a
 
24
#else
 
25
#define MANGLE(a) #a
 
26
#endif
 
27
#endif
 
28
 
 
29
#endif /* !__MANGLE_H */
 
30