From f1ae6ff27783dd482e16cc28dd8a64702235179f Mon Sep 17 00:00:00 2001 From: michaelld Date: Sun, 27 Aug 2006 01:33:06 +0000 Subject: Hopeful fix for ticket:41 . On Mac-Intel only, forces x86 assembly for Darwin and XCode to ignore the debugging pseudo-ops, as it already does in XCode 2.2 and 2.3 but creates an error in XCode 2.4. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3432 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/filter/assembly.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gnuradio-core/src') diff --git a/gnuradio-core/src/lib/filter/assembly.h b/gnuradio-core/src/lib/filter/assembly.h index 9398a0a1e..ecf54e2fa 100644 --- a/gnuradio-core/src/lib/filter/assembly.h +++ b/gnuradio-core/src/lib/filter/assembly.h @@ -23,9 +23,18 @@ #ifndef _ASSEMBLY_H_ #define _ASSEMBLY_H_ +#if defined (__APPLE__) && defined (__APPLE_CC__) +// XCode ignores the .scl and .type functions in XCode 2.2.1 and 2.3, +// but creates an error in XCode 2.4. Just ignore them. -#ifndef __ELF__ +#define GLOB_SYMB(f) _ ## f + +#define DEF_FUNC_HEAD(f) /* none */ + +#define FUNC_TAIL(f) /* none*/ + +#elif !defined (__ELF__) /* * Too bad, the following define does not work as expected --SF -- cgit