summaryrefslogtreecommitdiff
path: root/tinyusb/common/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/common/compiler')
-rw-r--r--tinyusb/common/compiler/compiler.h6
-rw-r--r--tinyusb/common/compiler/compiler_gcc.h6
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_ */