vk/vulkan.h: Import the VkPipeEvent enum from 130
[mesa.git] / include / c99_math.h
index ee0dd105e4989952a1d778bc69cf737ea06fc6e4..7ed7cc22176c45e4c93700eef5ec0d0ee598cffe 100644 (file)
@@ -83,7 +83,11 @@ roundf(float x)
 
 
 #if (defined(_MSC_VER) && _MSC_VER < 1800) || \
-    (!defined(_MSC_VER) && __STDC_VERSION__ < 199901L && !defined(__cplusplus))
+    (!defined(_MSC_VER) && \
+     __STDC_VERSION__ < 199901L && \
+     (!defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 600) && \
+     !defined(__cplusplus))
+
 static inline long int
 lrint(double d)
 {
@@ -135,6 +139,7 @@ llrintf(float f)
 
    return rounded;
 }
+
 #endif /* C99 */