Make MBED Studio happy
diff --git a/src/Encrypt.cpp b/src/Encrypt.cpp
index 6cd360c..0872826 100644
--- a/src/Encrypt.cpp
+++ b/src/Encrypt.cpp
@@ -4,10 +4,11 @@
*/
#include <stdlib.h>
-#ifndef __MBED__
-#include <memory.h>
-#else
+#ifdef __MBED__
#include <stddef.h>
+#include <string.h>
+#else
+#include <memory.h>
#endif
#include <stdio.h>
#include <assert.h>
diff --git a/src/Encrypt0.cpp b/src/Encrypt0.cpp
index 1384243..4c901d3 100644
--- a/src/Encrypt0.cpp
+++ b/src/Encrypt0.cpp
@@ -4,7 +4,9 @@
*/
#include <stdlib.h>
-#ifndef __MBED__
+#ifdef __MBED__
+#include <string.h>
+#else
#include <memory.h>
#endif
#include <stdio.h>
diff --git a/src/Recipient.cpp b/src/Recipient.cpp
index ff36224..4a4eca3 100644
--- a/src/Recipient.cpp
+++ b/src/Recipient.cpp
@@ -1,5 +1,7 @@
#include <stdlib.h>
-#ifndef __MBED__
+#ifdef __MBED__
+#include <string.h>
+#else
#include <memory.h>
#endif
diff --git a/src/cbor.cpp b/src/cbor.cpp
index 3bdce1a..d26c850 100644
--- a/src/cbor.cpp
+++ b/src/cbor.cpp
@@ -1,7 +1,9 @@
#include "cn-cbor/cn-cbor.h"
#include <cose/cose.h>
#include <stdlib.h>
-#ifndef __MBED__
+#ifdef __MBED__
+#include <string.h>
+#else
#include <memory.h>
#endif
diff --git a/src/openssl.cpp b/src/openssl.cpp
index dcd82b1..9883908 100644
--- a/src/openssl.cpp
+++ b/src/openssl.cpp
@@ -4,7 +4,11 @@
#include "cose_crypto.h"
#include <assert.h>
+#ifdef __MBED__
+#include <string.h>
+#else
#include <memory.h>
+#endif
#include <stdbool.h>
#ifdef COSE_C_USE_OPENSSL