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

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