aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmaple/include/libmaple/libmaple_types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libmaple/include/libmaple/libmaple_types.h b/libmaple/include/libmaple/libmaple_types.h
index ae01691..19a5101 100644
--- a/libmaple/include/libmaple/libmaple_types.h
+++ b/libmaple/include/libmaple/libmaple_types.h
@@ -27,7 +27,7 @@
/**
* @file libmaple_types.h
*
- * @brief libmaple types
+ * @brief libmaple's types, and operations on types.
*/
#ifndef _LIBMAPLE_LIBMAPLE_TYPES_H_
@@ -57,6 +57,10 @@ typedef void (*voidFuncPtr)(void);
#define NULL 0
#endif
+#ifndef offsetof
+#define offsetof(type, member) __builtin_offsetof(type, member)
+#endif
+
#ifdef __cplusplus
}
#endif