summaryrefslogtreecommitdiff
path: root/src/common/include/stdlib_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/include/stdlib_common.h')
-rw-r--r--src/common/include/stdlib_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/include/stdlib_common.h b/src/common/include/stdlib_common.h
index 80c188f..dc40b96 100644
--- a/src/common/include/stdlib_common.h
+++ b/src/common/include/stdlib_common.h
@@ -6,9 +6,17 @@
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void *memcpy(void *dest, const void *src, int count);
void *memset(void *dest, int val, int count);
uint16_t *memsetw(uint16_t *dest, uint16_t val, int count);
+#ifdef __cplusplus
+}
+#endif
+
#endif