]> git.gag.com Git - fw/openocd/commitdiff
openocd: include config.h in every file .c
authorAntonio Borneo <borneo.antonio@gmail.com>
Thu, 24 Feb 2022 10:39:15 +0000 (11:39 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 26 Mar 2022 13:32:57 +0000 (13:32 +0000)
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
src/helper/jim-nvp.c
src/rtos/chromium-ec.c
src/rtt/rtt.c
src/rtt/tcl.c
src/server/rtt_server.c
src/target/rtt.c

index 738ed7943ef82163509d6b7f609833625bb2fbe0..0409a83cdfb1a72feaa0f84b48ed244d656a0373 100644 (file)
  * official policies, either expressed or implied, of the Jim Tcl Project.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "jim-nvp.h"
 #include <string.h>
 
index 1c8f4e3f4c4787f9363185b37c754ec5a691e62b..2f1a0cf3cc6420ad820a12e8d98700ec77f4c8d0 100644 (file)
@@ -7,6 +7,10 @@
  * Chromium-EC RTOS Task Awareness
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <rtos/rtos.h>
 #include <target/target.h>
 #include <target/target_type.h>
index bf3cca51b20ba43df19dabcf0e6752a5d1a7d87d..3da3cce8161afdbd5e87d5126b327396833e8716 100644 (file)
  * 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>
index f5abf2e5eaa304ae9e94c6dfb195811e133628a1..4a34d8b981b1780d82484f98f904149516bf2660 100644 (file)
  * 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>
 
index c7141c0e07f5db670db5dad0fd4b33badf87b5e5..3850c26876484757bb91ba329a4ea9b064a02464 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdint.h>
 #include <rtt/rtt.h>
 
index 7e556e1cbd7f49bec1eb2b88f5f8902d150f173e..41830213d73299e37a7fea8aba510e4934d87acb 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stddef.h>
 #include <stdint.h>
 #include <helper/log.h>