summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/math.h b/math.h
index 96b9d5b..a7a5ff6 100644
--- a/math.h
+++ b/math.h
@@ -26,6 +26,7 @@
#ifdef HAVE_AMDLIBM
#define REPLACE_WITH_AMDLIBM
#include <amdlibm.h>
+#undef nearbyint
#endif
#define clamp(a,min,max) (a > max ? max : (a < min ? min : a))