remove another invalid skip of locking in ungetwc
[oweals/musl.git] / src / math / lrint.c
index feba28d072c153e50dac0fe207e833e2bc7361a4..bdca8b7cb82ec8b90ca9619e989dceb253b7ebc9 100644 (file)
@@ -25,9 +25,10 @@ otherwise LONG_MAX and LONG_MIN can be represented exactly
 as a double.
 */
 
-#if LONG_MAX < 1U<<53
+#if LONG_MAX < 1U<<53 && defined(FE_INEXACT)
 long lrint(double x)
 {
+       #pragma STDC FENV_ACCESS ON
        int e;
 
        e = fetestexcept(FE_INEXACT);