#ifndef CONFIG_UNALIGNED_ACCESS
#define CONFIG_UNALIGNED_ACCESS 0
#endif
+
+/**@brief Switches use of malloc/free functions family
+ * from standard library to user provided*/
+#ifndef CONFIG_USE_USER_MALLOC
+#define CONFIG_USE_USER_MALLOC 0
+#endif
+
#ifdef __cplusplus
}
#endif
#endif
-#ifdef USE_OTHER_MALLOC
+#if CONFIG_USE_USER_MALLOC
-#define ext4_malloc pool_malloc
-#define ext4_calloc pool_calloc
-#define ext4_realloc pool_realloc
-#define ext4_free pool_free
+#define ext4_malloc user_malloc
+#define ext4_calloc user_calloc
+#define ext4_realloc user_realloc
+#define ext4_free user_free
#else