summaryrefslogtreecommitdiff
path: root/firmware/export/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r--firmware/export/system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index cec47f1a71..aa079940d1 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -124,6 +124,8 @@ int get_cpu_boost_counter(void);
124 ptr = (typeof(ptr))tmp_ptr1; \ 124 ptr = (typeof(ptr))tmp_ptr1; \
125} 125}
126 126
127#define PTR_ADD(ptr, x) ((typeof(ptr))((char*)(ptr) + (x)))
128#define PTR_SUB(ptr, x) ((typeof(ptr))((char*)(ptr) - (x)))
127 129
128/* newer? SDL includes endian.h, So we ignore it */ 130/* newer? SDL includes endian.h, So we ignore it */
129#if (CONFIG_PLATFORM & PLATFORM_HOSTED) || defined(__PCTOOL__) 131#if (CONFIG_PLATFORM & PLATFORM_HOSTED) || defined(__PCTOOL__)