]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
examples : add missing header file (#198)
authorRadoslav Gerganov <redacted>
Fri, 26 May 2023 06:36:40 +0000 (09:36 +0300)
committerGitHub <redacted>
Fri, 26 May 2023 06:36:40 +0000 (09:36 +0300)
Some of the examples are missing the cstring header which is needed for
memcpy().

examples/mnist/main.cpp
examples/mpt/main.cpp

index 60a8fa716569eea5464865053603c0e3682584ce..c84eedd92fb301bbd830e515dc37affaba498528 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <cmath>
 #include <cstdio>
+#include <cstring>
 #include <ctime>
 #include <fstream>
 #include <string>
index 18d3bd3e8f968b8f5edf78338dcc01d26a9be5bf..84bb3f9342e22b773f1d9782682f5c64ecfb4184 100644 (file)
@@ -6,6 +6,7 @@
 #include <cmath>
 #include <cstddef>
 #include <cstdio>
+#include <cstring>
 #include <fstream>
 #include <cinttypes>
 #include <map>