Try to get atomic.h included correctly for C++
This commit is contained in:
parent
53812dc5d3
commit
0c98a318dd
3
.gitignore
vendored
3
.gitignore
vendored
@ -34,4 +34,5 @@ depend.mk
|
||||
|
||||
# Vi swap files
|
||||
.*.swp
|
||||
/build/
|
||||
/build/
|
||||
*.reviewboardrc
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <errno.h>
|
||||
#include <syslog.h>
|
||||
#include <atomic.h>
|
||||
|
||||
#include <skygw_debug.h>
|
||||
#include <skygw_types.h>
|
||||
|
@ -30,5 +30,9 @@
|
||||
* @endverbatim
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" int atomic_add(int *variable, int value);
|
||||
#else
|
||||
extern int atomic_add(int *variable, int value);
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user