From cf0d125a496f82b6831925b514bc5b40717ee9ca Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 30 Apr 2018 13:32:25 +0200 Subject: [PATCH] Kill atomic_compat.h. --- README | 2 -- atomic_compat.h | 20 -------------------- process.h | 2 +- sync_queue.h | 2 +- 4 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 atomic_compat.h diff --git a/README b/README index 7368386..a19a319 100644 --- a/README +++ b/README @@ -180,8 +180,6 @@ Liste de fichiers * fichiers sources - atomic_compat.h chargement des la classe std::atomic - communicator.h la couche de communication communicator.cpp diff --git a/atomic_compat.h b/atomic_compat.h deleted file mode 100644 index 1fec370..0000000 --- a/atomic_compat.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef ATOMIC_COMPAT_H -#define ATOMIC_COMPAT_H - -#if __GNUC__ == 4 && __GNUC_MINOR__ == 4 -# include // is named in gcc 4.4 - -template // fix missing definition in gcc 4.4 -void -atomic<_Tp*>::store(_Tp* __v, memory_order __m) volatile -{ atomic_address::store(__v, __m); } - -#else -# include -#endif - -#endif // !ATOMIC_COMPAT_H - -// Local variables: -// mode: c++ -// End: diff --git a/process.h b/process.h index 25d6c44..81e68d9 100644 --- a/process.h +++ b/process.h @@ -5,6 +5,7 @@ //#undef USE_UNORDERED_MAP #include +#include #include #ifdef USE_UNORDERED_MAP # include @@ -16,7 +17,6 @@ #include #include #include -#include "atomic_compat.h" #include "communicator.h" #include "misc.h" #include "msg_thread.h" diff --git a/sync_queue.h b/sync_queue.h index fc35339..d400578 100644 --- a/sync_queue.h +++ b/sync_queue.h @@ -1,7 +1,7 @@ #ifndef SYNC_QUEUE_H #define SYNC_QUEUE_H -#include "atomic_compat.h" +#include #define SYNC_QUEUE_BUFSIZE 16 -- 2.39.5