aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/sntp/unity/unity_fixture_malloc_overrides.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/sntp/unity/unity_fixture_malloc_overrides.h')
-rw-r--r--contrib/ntp/sntp/unity/unity_fixture_malloc_overrides.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/ntp/sntp/unity/unity_fixture_malloc_overrides.h b/contrib/ntp/sntp/unity/unity_fixture_malloc_overrides.h
new file mode 100644
index 000000000000..1e1001453d0d
--- /dev/null
+++ b/contrib/ntp/sntp/unity/unity_fixture_malloc_overrides.h
@@ -0,0 +1,21 @@
+//- Copyright (c) 2010 James Grenning and Contributed to Unity Project
+/* ==========================================
+ Unity Project - A Test Framework for C
+ Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
+ [Released under MIT License. Please refer to license.txt for details]
+========================================== */
+
+#ifndef UNITY_FIXTURE_MALLOC_OVERRIDES_H_
+#define UNITY_FIXTURE_MALLOC_OVERRIDES_H_
+
+#define malloc unity_malloc
+#define calloc unity_calloc
+#define realloc unity_realloc
+#define free unity_free
+
+void* unity_malloc(size_t size);
+void* unity_calloc(size_t num, size_t size);
+void* unity_realloc(void * oldMem, size_t size);
+void unity_free(void * mem);
+
+#endif /* UNITY_FIXTURE_MALLOC_OVERRIDES_H_ */