X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=fips%2Ffips_premain.c;h=7dc52460069f76c14c7f41e8e77b722b01963b08;hb=4082fea81c150e9f2643819148d275e500f309a3;hp=526edbb9d2f2684c67885082aec3fe26ff2f5f96;hpb=10db9f9f482d08e6890cec0f4ebec4bcba4c6377;p=oweals%2Fopenssl.git diff --git a/fips/fips_premain.c b/fips/fips_premain.c index 526edbb9d2..7dc5246006 100644 --- a/fips/fips_premain.c +++ b/fips/fips_premain.c @@ -7,7 +7,7 @@ #include #include #include -#if defined(__unix) || defined(__unix__) || defined(__vxworks) || defined(__ANDROID__) +#if defined(__unix) || defined(__unix__) || defined(__vxworks) || defined(__ANDROID__) || defined(__APPLE__) #include #endif @@ -69,8 +69,9 @@ #endif #if defined(_MSC_VER) -# pragma section("fipsro",read) -# __declspec(allocate("fipsro")) +# pragma const_seg("fipsro") +# pragma const_seg() + __declspec(allocate("fipsro")) #endif static const unsigned char FINGERPRINT_ascii_value[41] = HMAC_SHA1_SIG;