summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-01 15:42:22 -0400
committermidipix <writeonce@midipix.org>2016-07-01 15:42:22 -0400
commite5d3654607dc9350e2caa4213fec29ecc00f558d (patch)
tree70343b71d548c556113b7b430e131702b69451be /include
parenta0d1666a327c3372f564f592e5c0854af13e3a51 (diff)
downloadpsxtypes-e5d3654607dc9350e2caa4213fec29ecc00f558d.tar.bz2
psxtypes-e5d3654607dc9350e2caa4213fec29ecc00f558d.tar.xz
added __attr_section__.
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))