mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-22 18:26:39 +00:00
Change include of atomic to be compatible with C++ (#78)
This commit is contained in:
parent
ae3b7266a0
commit
e9a9a5abcc
1 changed files with 7 additions and 1 deletions
|
@ -23,6 +23,13 @@
|
||||||
#ifndef __COMMON_H__
|
#ifndef __COMMON_H__
|
||||||
#define __COMMON_H__
|
#define __COMMON_H__
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
|
# include <stdatomic.h>
|
||||||
|
#else
|
||||||
|
# include <atomic>
|
||||||
|
# define _Atomic(X) std::atomic< X >
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -35,7 +42,6 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdatomic.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue