1
0
Fork 0
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:
MasaGratoR 2021-03-22 15:30:12 +01:00 committed by GitHub
parent ae3b7266a0
commit e9a9a5abcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,13 @@
#ifndef __COMMON_H__
#define __COMMON_H__
#ifndef __cplusplus
# include <stdatomic.h>
#else
# include <atomic>
# define _Atomic(X) std::atomic< X >
#endif
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
@ -35,7 +42,6 @@
#include <math.h>
#include <time.h>
#include <sys/stat.h>
#include <stdatomic.h>
#include <assert.h>
#include <switch.h>