Skip to content

Commit 9f1c9f1

Browse files
committed
Correct wrongly used cplusplus macro, making declarations C++ instead of C
1 parent 407a303 commit 9f1c9f1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • system/GD32F10x_firmware/CMSIS/GD/GD32F10x/Include

system/GD32F10x_firmware/CMSIS/GD/GD32F10x/Include/gd32f10x.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ OF SUCH DAMAGE.
3838
#ifndef GD32F10X_H
3939
#define GD32F10X_H
4040

41-
#ifdef cplusplus
41+
#ifdef __cplusplus
4242
extern "C" {
4343
#endif
4444

@@ -308,6 +308,7 @@ typedef enum IRQn
308308
#include "core_cm3.h"
309309
#include "system_gd32f10x.h"
310310
#include <stdint.h>
311+
#include <stdbool.h>
311312

312313
/* enum definitions */
313314
typedef enum {DISABLE = 0, ENABLE = !DISABLE} EventStatus, ControlStatus;
@@ -374,7 +375,7 @@ typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrStatus;
374375
#include "gd32f10x_libopt.h"
375376
#endif /* USE_STDPERIPH_DRIVER */
376377

377-
#ifdef cplusplus
378+
#ifdef __cplusplus
378379
}
379380
#endif
380381
#endif

0 commit comments

Comments
 (0)