diff options
| author | Niklas Hauser <[email protected]> | 2020-09-26 05:40:24 +0200 |
|---|---|---|
| committer | Niklas Hauser <[email protected]> | 2020-10-03 20:17:53 +0200 |
| commit | 788dcc200de76c965208c428ab1e1de0e72c98c1 (patch) | |
| tree | 21187c6470b88c540e357c27c2e8801b7c065f74 /src | |
| parent | e41d9202b81b0f3357c2feec2bca0c0a20b5478b (diff) | |
Change CFG_TUSB_CONFIG_FILE mechanism to improve header file scanning
Diffstat (limited to 'src')
| -rw-r--r-- | src/tusb_option.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h index 7e486bff0..28bbcf89e 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -110,11 +110,13 @@ // Allow to use command line to change the config name/location -#ifndef CFG_TUSB_CONFIG_FILE - #define CFG_TUSB_CONFIG_FILE "tusb_config.h" +#ifdef CFG_TUSB_CONFIG_FILE + #include CFG_TUSB_CONFIG_FILE +#else + #include "tusb_config.h" #endif -#include CFG_TUSB_CONFIG_FILE + /** \addtogroup group_configuration * @{ */ |
