Changed code so that it will be compatible with c++.
1. Added #ifdef extern "C" to public header files. 2. Changed variables that are key words in c++, to different names (like ns instead of namespace). 3. Changed char* to const char* for constant strings.
This commit is contained in:
parent
eda4a58ebf
commit
58ea4eba27
27 changed files with 274 additions and 119 deletions
|
|
@ -36,7 +36,9 @@
|
|||
* only include this file.
|
||||
* Internal code should not include this file
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#ifndef _CLIXON_BACKEND_H_
|
||||
#define _CLIXON_BACKEND_H_
|
||||
|
||||
|
|
@ -50,3 +52,8 @@
|
|||
#include <clixon/clixon_backend_transaction.h>
|
||||
|
||||
#endif /* _CLIXON_BACKEND_H_ */
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue