summaryrefslogtreecommitdiffhomepage
path: root/include/psxtypes/compiler/__psx_compiler_gcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/psxtypes/compiler/__psx_compiler_gcc.h')
-rw-r--r--include/psxtypes/compiler/__psx_compiler_gcc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/psxtypes/compiler/__psx_compiler_gcc.h b/include/psxtypes/compiler/__psx_compiler_gcc.h
index ee205f3..b5c08b7 100644
--- a/include/psxtypes/compiler/__psx_compiler_gcc.h
+++ b/include/psxtypes/compiler/__psx_compiler_gcc.h
@@ -58,6 +58,10 @@
#define __attr_protected__ __attribute__ ((visibility("protected")))
+/* offsetof */
+#define __offsetof(st,member) __builtin_offsetof(st,member)
+
+
/* named section support */
#define __attr_section__(s) __attribute__((section(s)))
#define __attr_section_decl__(s)