From f963a4cb15ff4740357af4e21b9b5f49b82d1b1e Mon Sep 17 00:00:00 2001 From: Vassil Vassilev <vvasilev@cern.ch> Date: Wed, 2 Nov 2016 20:01:35 +0100 Subject: [PATCH] Force users to #include TAtomicCount.h. --- core/thread/inc/TAtomicCountGcc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/thread/inc/TAtomicCountGcc.h b/core/thread/inc/TAtomicCountGcc.h index 0c2117003a5..e13b7264abc 100644 --- a/core/thread/inc/TAtomicCountGcc.h +++ b/core/thread/inc/TAtomicCountGcc.h @@ -28,6 +28,10 @@ // // ////////////////////////////////////////////////////////////////////////// +#ifndef ROOT_TAtomicCount +# error This should be #included only by TAtomicCount.h. Please #include TAtomicCount.h. +#endif //ROOT_TAtomicCount + #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2) || \ (defined(__APPLE_CC__) && __APPLE_CC__ > 5000 && !defined(MAC_OS_X_VERSION_10_6)) #include <bits/atomicity.h> -- GitLab