Try to get atomic.h included correctly for C++

This commit is contained in:
counterpoint 2015-06-22 12:13:28 +01:00
parent 53812dc5d3
commit 0c98a318dd
3 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View File

@ -34,4 +34,5 @@ depend.mk
# Vi swap files
.*.swp
/build/
/build/
*.reviewboardrc

View File

@ -26,6 +26,7 @@
#include <stdarg.h>
#include <errno.h>
#include <syslog.h>
#include <atomic.h>
#include <skygw_debug.h>
#include <skygw_types.h>

View File

@ -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