From d80a6052a64d2df61ee61888853ef5f3872c0e34 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Thu, 28 Jul 2016 09:55:07 -0700 Subject: [PATCH] [perl #128763] Fix POSIX.xs longdbl assertion --- ext/POSIX/POSIX.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 3820026..a950af3 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -1153,7 +1153,7 @@ static NV my_trunc(NV x) # define NV_PAYLOAD_TYPE NV #endif -#ifdef LONGDOUBLE_DOUBLEDOUBLE +#if defined(USE_LONG_DOUBLE) && defined(LONGDOUBLE_DOUBLEDOUBLE) # define NV_PAYLOAD_SIZEOF_ASSERT(a) assert(sizeof(a) == NVSIZE / 2) #else # define NV_PAYLOAD_SIZEOF_ASSERT(a) assert(sizeof(a) == NVSIZE) -- 1.8.3.1