Fix bug with compatibility memory define/header
diff --git a/include/polarssl/platform.h b/include/polarssl/platform.h
index 9e79b64..f2d6263 100644
--- a/include/polarssl/platform.h
+++ b/include/polarssl/platform.h
@@ -30,6 +30,11 @@
 #include POLARSSL_CONFIG_FILE
 #endif
 
+/* Temporary compability hack for to keep the deprecated MEMORY_C working */
+#if defined(POLARSSL_MEMORY_C) && !defined(POLARSSL_PLATFORM_MEMORY)
+#define POLARSSL_PLATFORM_MEMORY
+#endif
+
 #include <stdio.h>
 
 #ifdef __cplusplus