public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* maybe a bug in 3.0.13 for osx 32bit builds
@ 2014-04-17 17:03 Trenton Henry
  0 siblings, 0 replies; only message in thread
From: Trenton Henry @ 2014-04-17 17:03 UTC (permalink / raw)
  To: libffi-discuss

I am compiling the ffi code for osx directly into my application (as =
opposed to linking it as a library). I'm trying to build exclusively for =
32bit, on 10.9.=20

For the osx builds using the sources for libffi-3.0.13:

ffi64.c starts with
#if !defined(__i386__) && defined(__x86_64__)
as expected

ffi.c starts with
#if !defined(__i386__) && defined(__x86_64__)

but shouldn't it be
#if defined(__i386__) && !defined(__x86_64__)

Also, darwin.S starts with
#if !defined(__i386__) && defined(__x86_64__)
...
#ifndef __x86_64__

Shouldn't it also be
#if defined(__i386__) && !defined(__x86_64__)

Anyhow I made these minor changes and I got it to build and work fine. =
I'm just not certain what I did is right. It seems to make sense, but =
probably I failed to set something up right.
Thanks!
-Trenton Henry

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-17 17:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-17 17:03 maybe a bug in 3.0.13 for osx 32bit builds Trenton Henry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).