Hopeful fix for ticket:41 . On Mac-Intel only, forces x86 assembly
authormichaelld <michaelld@221aa14e-8319-0410-a670-987f0aec2ac5>
Sun, 27 Aug 2006 01:33:06 +0000 (01:33 +0000)
committermichaelld <michaelld@221aa14e-8319-0410-a670-987f0aec2ac5>
Sun, 27 Aug 2006 01:33:06 +0000 (01:33 +0000)
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

index 9398a0a1e83abf82f2ac028e3c61b777ef5ce5ef..ecf54e2fa8867fd92d13d0d4475108e049d6e78d 100644 (file)
 #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