summaryrefslogtreecommitdiff
path: root/tinyusb/device
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/device')
-rw-r--r--tinyusb/device/romdriver/error.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tinyusb/device/romdriver/error.h b/tinyusb/device/romdriver/error.h
index 9fa1eee28..4849044bb 100644
--- a/tinyusb/device/romdriver/error.h
+++ b/tinyusb/device/romdriver/error.h
@@ -133,8 +133,9 @@ typedef enum
} ErrorCode_t;
-
+#ifndef offsetof
#define offsetof(s,m) (int)&(((s *)0)->m)
+#endif
#define COMPILE_TIME_ASSERT(pred) switch(0){case 0:case pred:;}
#endif /* __LPC_ERROR_H__ */