~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to ffcall/vacall/asmm68k.h

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Assembly language support for m68k CPU.
2
 
// Bruno Haible 29.5.1999
3
 
 
4
 
#ifdef ASM_UNDERSCORE
5
 
// SunOS, NetBSD, OpenBSD, Linux/a.out
6
 
#define C(entrypoint) _##entrypoint
7
 
#else
8
 
// SVR4, A/UX, AMIX, Atari, Linux/ELF
9
 
#define C(entrypoint) entrypoint
10
 
#endif
11
 
 
12
 
// When assembly language code is compiled into a shared library, ELF linkers
13
 
// need to know which symbols are functions.
14
 
#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__ELF__) || defined(__svr4__)
15
 
#define DECLARE_FUNCTION(name) .type C(name),@function
16
 
#else
17
 
#define DECLARE_FUNCTION(name)
18
 
#endif