summaryrefslogtreecommitdiff
path: root/XMPCommon/Utilities/TAtomicTypes_Linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'XMPCommon/Utilities/TAtomicTypes_Linux.h')
-rw-r--r--XMPCommon/Utilities/TAtomicTypes_Linux.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/XMPCommon/Utilities/TAtomicTypes_Linux.h b/XMPCommon/Utilities/TAtomicTypes_Linux.h
new file mode 100644
index 0000000..79cbf8d
--- /dev/null
+++ b/XMPCommon/Utilities/TAtomicTypes_Linux.h
@@ -0,0 +1,31 @@
+#ifndef __TAtomicTypes_Linux_h__
+#define __TAtomicTypes_Linux_h__ 1
+
+// =================================================================================================
+// ADOBE SYSTEMS INCORPORATED
+// Copyright 2014 Adobe Systems Incorporated
+// All Rights Reserved
+//
+// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
+// of the Adobe license agreement accompanying it.
+// =================================================================================================
+
+#if XMP_UNIXBuild
+
+#ifndef __TAtomicTypes_h__
+ #error "This file is supposed to be included from TAtomicTypes and not directly"
+#endif
+
+#if GCC_VERSION > 40400 && GCC_VERSION < 40899
+ #include <cstdatomic>
+
+ namespace AdobeXMPCommon {
+ typedef std::atomic_size_t atomic_sizet;
+ }
+
+ #define NOT_DEFINED_ATOMIC_SIZE_T 0
+#endif
+
+#endif // XMP_UNIXBuild
+
+#endif // __TAtomicTypes_Linux_h__