summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-06-29 17:28:35 +0700
committerhathach <[email protected]>2021-06-29 17:28:35 +0700
commit3eec011a7c7f7c81954a417b9683eded91ad86e5 (patch)
treea0f9a91b59c8e92f73636a93687838e290bfbecc /src/common
parentf1af90d8eb06e3909243c40a48d798c72a77821e (diff)
add tud_vendor_control_request_cb() to poisoned list
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_compiler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/tusb_compiler.h b/src/common/tusb_compiler.h
index 679060b20..f755e13f4 100644
--- a/src/common/tusb_compiler.h
+++ b/src/common/tusb_compiler.h
@@ -83,6 +83,10 @@
#define TU_BSWAP16(u16) (__builtin_bswap16(u16))
#define TU_BSWAP32(u32) (__builtin_bswap32(u32))
+ // List of obsolete callback function that is renamed and should not be defined.
+ // Put it here since only gcc support this pragma
+ #pragma GCC poison tud_vendor_control_request_cb
+
#elif defined(__TI_COMPILER_VERSION__)
#define TU_ATTR_ALIGNED(Bytes) __attribute__ ((aligned(Bytes)))
#define TU_ATTR_SECTION(sec_name) __attribute__ ((section(#sec_name)))