summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-12 22:22:00 +0700
committerhathach <[email protected]>2014-03-12 22:22:00 +0700
commit368d09695f5c72edb52df2fc7f2cb4e3bc9957e8 (patch)
tree4d891a9bd557bcf7da34342a6605c541f28ab1e0 /tinyusb/common
parent97f95c61f6f0c3a8e0a6f32889605be1a1e09cdd (diff)
fix build error with lpcxpresso device os none
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/compiler/compiler_gcc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h
index 188ae271d..ab3ced5d3 100644
--- a/tinyusb/common/compiler/compiler_gcc.h
+++ b/tinyusb/common/compiler/compiler_gcc.h
@@ -55,7 +55,7 @@
#define ALIGN_OF(x) __alignof__(x)
/// Normally, the compiler places the objects it generates in sections like data or bss & function in text. Sometimes, however, you need additional sections, or you need certain particular variables to appear in special sections, for example to map to special hardware. The section attribute specifies that a variable (or function) lives in a particular section
-#define ATTR_SECTION(section) __attribute__ ((#section))
+#define ATTR_SECTION(sec_name) __attribute__ (( section(#sec_name) ))
/// If this attribute is used on a function declaration and a call to such a function is not eliminated through dead code elimination or other optimizations, an error that includes message is diagnosed. This is useful for compile-time checking
#define ATTR_ERROR(Message) __attribute__ ((error(Message)))