aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r--src/serd_internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h
index ba6b5d98..4a19e126 100644
--- a/src/serd_internal.h
+++ b/src/serd_internal.h
@@ -38,9 +38,9 @@
# define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif
-#ifndef fmax
-static inline float
-fmax(float a, float b)
+#ifndef HAVE_FMAX
+static inline double
+fmax(double a, double b)
{
return (a < b) ? b : a;
}