c++: Add extern "C" { } block to header files

Adds extern "C" { } blocks to header files so that they can be
safely used by C++ source files.

Change-Id: Ia4db0c36a5dac5d3de351184a297d2af0df64532
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
Peter Mitsis 2016-01-22 12:38:49 -05:00 committed by Anas Nashif
commit a0e4568760
128 changed files with 1035 additions and 3 deletions

View file

@ -27,6 +27,10 @@
#include <misc/util.h>
#ifdef __cplusplus
extern "C" {
#endif
/* default system clock */
#define SYSCLK_DEFAULT_IOSC_HZ MHZ(120)
@ -163,4 +167,8 @@
#endif /* !_ASMLANGUAGE */
#ifdef __cplusplus
}
#endif
#endif /* _SOC__H_ */

View file

@ -39,6 +39,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define _SCP_OSC_SOURCE_MAIN 0
#define _SCP_OSC_SOURCE_INTERNAL 1
#define _SCP_OSC_SOURCE_INTERNAL_DIV4 2
@ -162,4 +166,9 @@ struct __scp {
};
extern volatile struct __scp __scp;
#ifdef __cplusplus
}
#endif
#endif /* _SCP_H_ */

View file

@ -27,6 +27,10 @@
#include <misc/util.h>
#ifdef __cplusplus
extern "C" {
#endif
/* default system clock */
#define SYSCLK_DEFAULT_IOSC_HZ MHZ(12)
@ -90,4 +94,8 @@
#endif /* !_ASMLANGUAGE */
#ifdef __cplusplus
}
#endif
#endif /* _BOARD__H_ */