From 368d09695f5c72edb52df2fc7f2cb4e3bc9957e8 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 12 Mar 2014 22:22:00 +0700 Subject: fix build error with lpcxpresso device os none --- tinyusb/common/compiler/compiler_gcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinyusb') 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))) -- cgit v1.3.1