-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Hampton wrote: | On Wed, 2005-10-05 at 13:20 +0900, Peter O'Gorman wrote: | |>| I was thinking more along the lines of an "#ifndef DARWIN" around the |>| goffice definition of fmin(). Is there some #define that's only set |>| during the mac build? |> |>#if defined(__APPLE__) && defined(__MACH__) |> |>but I dislike it :) | | | Don't particularly like the looks of it myself. However, if that's the | normal incantation used for packages that compile across multiple | systems including MacOS then we should probably go with it.
Okay, then I guess what I'd do is: #if !defined(HAVE_FMIN) && defined(__APPLE__) && defined(__MACH__) #define HAVE_FMIN 1 #endif and then I'd wrap the fmin definition in #if !HAVE_FMIN ... #endif Peter -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Darwin) iQCVAwUBQ0PxZriDAg3OZTLPAQIPZAP+IQ2545SyZSDZBKxXoDIggaHuQZdmqsVg IjylGLm4I9aoPUEi7qdHsaZ56ryiRpqkEuwFkbRJU/+CCCQE1a2rz41kyQ/sp5QE FUgDfz/uYj67rWlg3Xf+el1mrHAmkvllor3a5fpA2uvQdLNsn0wEhLrhX0toHy0K fKi+Q/cyy30= =lIri -----END PGP SIGNATURE----- _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel