fips_canister.c: add cross-compiler support for iOS (it applies even to
authorAndy Polyakov <appro@openssl.org>
Tue, 8 Nov 2011 12:21:32 +0000 (12:21 +0000)
committerAndy Polyakov <appro@openssl.org>
Tue, 8 Nov 2011 12:21:32 +0000 (12:21 +0000)
MacOS X, because it's easier to handle it this way).

fips/fips_canister.c

index 7d67d32d6c4f11431419bc04e9bad956c7307333..7be48426d90500fcf3c499453cafac5e332b5e43 100644 (file)
@@ -34,6 +34,7 @@ const void         *FIPS_text_end(void);
                                  defined(__mips__)|| defined(__mips))) || \
        (defined(__linux)     && ((defined(__PPC__) && !defined(__PPC64__)) || \
                                  defined(__arm__) || defined(__arm)))  || \
+       (defined(__APPLE__) /* verified on all MacOS X & iOS flavors */)|| \
        (defined(_WIN32)      && defined(_MSC_VER))
 #  define FIPS_REF_POINT_IS_CROSS_COMPILER_AWARE
 # endif