summaryrefslogtreecommitdiff
path: root/float.h
diff options
context:
space:
mode:
Diffstat (limited to 'float.h')
-rw-r--r--float.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/float.h b/float.h
index fb7e1f2..69b6744 100644
--- a/float.h
+++ b/float.h
@@ -1,5 +1,9 @@
-#ifndef __FLOAT_H__
-#define __FLOAT_H__
+#ifndef __STDC_VERSION_FLOAT_H__
+#if defined __STDC_VERSION__
+#define __STDC_VERSION_FLOAT_H__ __STDC_VERSION__
+#else
+#define __STDC_VERSION_FLOAT_H__ 1
+#endif
/*
UNG's Not GNU
@@ -57,7 +61,7 @@ SOFTWARE.
#define LDBL_MIN_10_EXP (-37)
#define LDBL_MIN_EXP (-1021)
-#if (defined __STDC_VERSION__ && 199901L <= __STDC_VERSION__)
+#if (199901L <= __STDC_VERSION_FLOAT_H__)
#define DECIMAL_DIG (10)
#define FLT_EVAL_METHOD (-1)
#endif