summaryrefslogtreecommitdiff
path: root/libs/pbd/fpu.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-04-21 12:13:00 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-04-21 12:13:00 -0400
commit9241f581883ddcdd51560c56c83c6afa6dc3815a (patch)
treec940868ce4b1feee8505ba7377827ab520251de5 /libs/pbd/fpu.cc
parenta5d7e8446bdc488be9d52cede7f49ad9910cc127 (diff)
fix build of FPU code on OS X by reverting to use of _LP64 to identify 32/64 bit situation
Diffstat (limited to 'libs/pbd/fpu.cc')
-rw-r--r--libs/pbd/fpu.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/pbd/fpu.cc b/libs/pbd/fpu.cc
index c297d2dd07..d527cb816a 100644
--- a/libs/pbd/fpu.cc
+++ b/libs/pbd/fpu.cc
@@ -59,7 +59,10 @@ FPU::FPU ()
#else
-#ifndef USE_X86_64_ASM /* *nix; 32 bit version */
+#ifndef _LP64 /* *nix; 32 bit version. This odd macro constant is required because we need something that identifies this as a 32 bit
+ build on Linux and on OS X. Anything that serves this purpose will do, but this is the best thing we've identified
+ so far.
+ */
asm volatile (
"mov $1, %%eax\n"