summaryrefslogtreecommitdiff
path: root/tinyusb/common/compiler/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/common/compiler/compiler.h')
-rw-r--r--tinyusb/common/compiler/compiler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tinyusb/common/compiler/compiler.h b/tinyusb/common/compiler/compiler.h
index 738711416..4c81047c7 100644
--- a/tinyusb/common/compiler/compiler.h
+++ b/tinyusb/common/compiler/compiler.h
@@ -49,6 +49,7 @@
#ifndef _TEST_
#define STATIC_ static
#define INLINE_ inline
+ #define ATTR_TEST_WEAK
#if TUSB_CFG_DEBUG == 3
#define ATTR_ALWAYS_INLINE // no inline for debug = 3
@@ -56,12 +57,13 @@
#else
#define STATIC_VAR static
#endif
- #define ATTR_TEST_WEAK
+
#else
#define ATTR_ALWAYS_INLINE
#define STATIC_
#define STATIC_VAR
#define INLINE_
+
#endif
#if defined(__GNUC__)