aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--methods/lbfgs/arithmetic_ansi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/methods/lbfgs/arithmetic_ansi.h b/methods/lbfgs/arithmetic_ansi.h
index c071245..c1fd1b4 100644
--- a/methods/lbfgs/arithmetic_ansi.h
+++ b/methods/lbfgs/arithmetic_ansi.h
@@ -1,5 +1,6 @@
#include <cstdlib>
#include <memory>
+#include <cstring>
#if LBFGS_FLOAT == 32 && LBFGS_IEEE_FLOAT
#define fsigndiff(x, y) (((*(uint32_t*)(x)) ^ (*(uint32_t*)(y))) & 0x80000000U)