diff options
| author | hathach <[email protected]> | 2012-11-27 15:21:47 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2012-11-27 15:21:47 +0700 |
| commit | 06c16ae03f0c6b70283392b057137ac20fcb4d82 (patch) | |
| tree | 64cd3847bd9cfa9c52ebc8d5ea957476a110024a /tinyusb/common/compiler | |
| parent | e62963844bc41f16f4ec0da686c20019eae31c04 (diff) | |
added files
added some template code
Diffstat (limited to 'tinyusb/common/compiler')
| -rw-r--r-- | tinyusb/common/compiler/compiler.h | 6 | ||||
| -rw-r--r-- | tinyusb/common/compiler/compiler_gcc.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tinyusb/common/compiler/compiler.h b/tinyusb/common/compiler/compiler.h index f3a90d70c..0114063e4 100644 --- a/tinyusb/common/compiler/compiler.h +++ b/tinyusb/common/compiler/compiler.h @@ -35,11 +35,11 @@ * This file is part of the tiny usb stack. */ -#ifndef COMPILER_H_ -#define COMPILER_H_ +#ifndef _TUSB_COMPILER_H_ +#define _TUSB_COMPILER_H_ #if defined(__GNUC__) #include "compiler_gcc.h" #endif -#endif /* COMPILER_H_ */ +#endif /* _TUSB_COMPILER_H_ */ diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h index b6a4286c2..e2671764f 100644 --- a/tinyusb/common/compiler/compiler_gcc.h +++ b/tinyusb/common/compiler/compiler_gcc.h @@ -35,8 +35,8 @@ * This file is part of the tiny usb stack. */ -#ifndef COMPILER_GCC_H_ -#define COMPILER_GCC_H_ +#ifndef _TUSB_COMPILER_GCC_H_ +#define _TUSB_COMPILER_GCC_H_ #define ATTR_ALIGNED(Bytes) __attribute__ ((aligned(Bytes))) #define ATTR_PACKED __attribute__ ((packed)) @@ -52,4 +52,4 @@ #define ATTR_WARN_UNUSED_RESULT __attribute__ ((warn_unused_result)) #define ATTR_ALWAYS_INLINE __attribute__ ((always_inline)) -#endif /* COMPILER_GCC_H_ */ +#endif /* _TUSB_COMPILER_GCC_H_ */ |
