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:
parent
6504b7e72a
commit
a0e4568760
128 changed files with 1035 additions and 3 deletions
|
@ -24,6 +24,10 @@
|
|||
#ifndef _SW_ISR_TABLE__H_
|
||||
#define _SW_ISR_TABLE__H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if !defined(_ASMLANGUAGE)
|
||||
/*
|
||||
* Note the order: arg first, then ISR. This allows a table entry to be
|
||||
|
@ -40,4 +44,8 @@ typedef struct _IsrTableEntry _IsrTableEntry_t;
|
|||
extern _IsrTableEntry_t _sw_isr_table[CONFIG_NUM_IRQS];
|
||||
#endif /* _ASMLANGUAGE */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _SW_ISR_TABLE__H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue