summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/psxtypes/compiler/__nt_compiler_clang.h1
-rw-r--r--include/psxtypes/compiler/__nt_compiler_gcc.h1
-rw-r--r--include/psxtypes/compiler/__nt_compiler_msvc.h1
-rw-r--r--include/psxtypes/compiler/__psx_compiler_gcc.h1
4 files changed, 4 insertions, 0 deletions
diff --git a/include/psxtypes/compiler/__nt_compiler_clang.h b/include/psxtypes/compiler/__nt_compiler_clang.h
index 1d4080e..86aa6c1 100644
--- a/include/psxtypes/compiler/__nt_compiler_clang.h
+++ b/include/psxtypes/compiler/__nt_compiler_clang.h
@@ -70,6 +70,7 @@
#define __volatile__ volatile
#define __attr_aligned__(x) __declspec(align(x))
#define __attr_ptr_size_aligned__ __attr_aligned__(__SIZEOF_POINTER__)
+#define __attr_section__(s) __attribute__((section(s)))
#define __attr_packed__
#define __attr_export__ __declspec(dllexport)
#define __attr_import__ __declspec(dllimport)
diff --git a/include/psxtypes/compiler/__nt_compiler_gcc.h b/include/psxtypes/compiler/__nt_compiler_gcc.h
index b5e59f6..b145698 100644
--- a/include/psxtypes/compiler/__nt_compiler_gcc.h
+++ b/include/psxtypes/compiler/__nt_compiler_gcc.h
@@ -61,6 +61,7 @@
/* compiler attributes */
#define __attr_aligned__(x) __attribute__((__aligned__(x)))
#define __attr_ptr_size_aligned__ __attr_aligned__(__SIZEOF_POINTER__)
+#define __attr_section__(s) __attribute__((section(s)))
#define __attr_packed__ __attribute__((__packed__))
#define __attr_export__ __attribute__((dllexport))
#define __attr_import__ __attribute__((dllimport))
diff --git a/include/psxtypes/compiler/__nt_compiler_msvc.h b/include/psxtypes/compiler/__nt_compiler_msvc.h
index cc8160e..5268a0e 100644
--- a/include/psxtypes/compiler/__nt_compiler_msvc.h
+++ b/include/psxtypes/compiler/__nt_compiler_msvc.h
@@ -72,6 +72,7 @@
#define __volatile__ volatile
#define __attr_aligned__(x) __declspec(align(x))
#define __attr_ptr_size_aligned__ __attr_aligned__(__SIZEOF_POINTER__)
+#define __attr_section__(s) __declspec(allocate(s))
#define __attr_packed__
#define __attr_export__ __declspec(dllexport)
#define __attr_import__ __declspec(dllimport)
diff --git a/include/psxtypes/compiler/__psx_compiler_gcc.h b/include/psxtypes/compiler/__psx_compiler_gcc.h
index 6c22fa2..94baa9f 100644
--- a/include/psxtypes/compiler/__psx_compiler_gcc.h
+++ b/include/psxtypes/compiler/__psx_compiler_gcc.h
@@ -53,6 +53,7 @@
/* compiler attributes */
#define __attr_aligned__(x) __attribute__((__aligned__(x)))
#define __attr_ptr_size_aligned__ __attr_aligned__(__SIZEOF_POINTER__)
+#define __attr_section__(s) __attribute__((section(s)))
#define __attr_packed__ __attribute__((__packed__))
#define __attr_export__ __attribute__((dllexport))
#define __attr_import__ __attribute__((dllimport))