Skip to content

Commit 5dd05fe

Browse files
borneoaerhankur
authored andcommitted
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
1 parent d43c7df commit 5dd05fe

6 files changed

Lines changed: 24 additions & 0 deletions

File tree

src/helper/jim-nvp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
* official policies, either expressed or implied, of the Jim Tcl Project.
4242
*/
4343

44+
#ifdef HAVE_CONFIG_H
45+
#include "config.h"
46+
#endif
47+
4448
#include "jim-nvp.h"
4549
#include <string.h>
4650

src/rtos/chromium-ec.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
* Chromium-EC RTOS Task Awareness
88
*/
99

10+
#ifdef HAVE_CONFIG_H
11+
#include "config.h"
12+
#endif
13+
1014
#include <rtos/rtos.h>
1115
#include <target/target.h>
1216
#include <target/target_type.h>

src/rtt/rtt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
#ifdef HAVE_CONFIG_H
19+
#include "config.h"
20+
#endif
21+
1822
#include <stdint.h>
1923
#include <stdbool.h>
2024
#include <string.h>

src/rtt/tcl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
#ifdef HAVE_CONFIG_H
19+
#include "config.h"
20+
#endif
21+
1822
#include <helper/log.h>
1923
#include <target/rtt.h>
2024

src/server/rtt_server.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
#ifdef HAVE_CONFIG_H
19+
#include "config.h"
20+
#endif
21+
1822
#include <stdint.h>
1923
#include <rtt/rtt.h>
2024

src/target/rtt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
#ifdef HAVE_CONFIG_H
19+
#include "config.h"
20+
#endif
21+
1822
#include <stddef.h>
1923
#include <stdint.h>
2024
#include <helper/log.h>

0 commit comments

Comments
 (0)