diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2022-02-24 11:39:15 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2022-03-26 13:32:57 +0000 |
commit | 3fa695be2401c88dbd93b2c9dad1c098a948c4ca (patch) | |
tree | f8fef59b88c62440807b203a6e3e8f19c801a0ae /src/rtt | |
parent | 00d4699d0b559a0bb3e739a78f3ce1c5731f8dea (diff) | |
download | riscv-openocd-3fa695be2401c88dbd93b2c9dad1c098a948c4ca.zip riscv-openocd-3fa695be2401c88dbd93b2c9dad1c098a948c4ca.tar.gz riscv-openocd-3fa695be2401c88dbd93b2c9dad1c098a948c4ca.tar.bz2 |
openocd: include config.h in every file .c
Including config.h as first is required for every C file.
Add it to the C files that still miss it.
Change-Id: I1a210e7d3a854958a85a290b086ad8a9f5176425
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6856
Tested-by: jenkins
Diffstat (limited to 'src/rtt')
-rw-r--r-- | src/rtt/rtt.c | 4 | ||||
-rw-r--r-- | src/rtt/tcl.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/rtt/rtt.c b/src/rtt/rtt.c index bf3cca5..3da3cce 100644 --- a/src/rtt/rtt.c +++ b/src/rtt/rtt.c @@ -15,6 +15,10 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <stdint.h> #include <stdbool.h> #include <string.h> diff --git a/src/rtt/tcl.c b/src/rtt/tcl.c index f5abf2e..4a34d8b 100644 --- a/src/rtt/tcl.c +++ b/src/rtt/tcl.c @@ -15,6 +15,10 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <helper/log.h> #include <target/rtt.h> |