diff options
author | David Robillard <d@drobilla.net> | 2012-01-16 18:27:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-16 18:27:09 +0000 |
commit | e3dcfd6ac49e2657fa8b7f707c4a01f20f40cc69 (patch) | |
tree | d3847f5fc36cc2e83b41fe04d35206afa04c179b /src/serd_internal.h | |
parent | 2d724f0e199f74201307cc161031afbd8dba4eb5 (diff) | |
download | serd-e3dcfd6ac49e2657fa8b7f707c4a01f20f40cc69.tar.gz serd-e3dcfd6ac49e2657fa8b7f707c4a01f20f40cc69.tar.bz2 serd-e3dcfd6ac49e2657fa8b7f707c4a01f20f40cc69.zip |
Fix compilation on sane platforms.
git-svn-id: http://svn.drobilla.net/serd/trunk@292 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r-- | src/serd_internal.h | 6 |
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; } |