summaryrefslogtreecommitdiff
path: root/tinyusb/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-12-07 01:27:32 +0700
committerhathach <[email protected]>2012-12-07 01:31:09 +0700
commit6049b6d0df750908dec0d858448345256b4e9f5e (patch)
treee015e859e77c0731f4f7222a6f9dcf0c0584c0fb /tinyusb/device
parentf31ade6151089a0d6d99b73c23a7a6e1a538c268 (diff)
make fundamental changes in project building
add some makefile.defs
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__ */