summaryrefslogtreecommitdiff
path: root/XMPCommon/Utilities/TAtomicTypes_Linux.h
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2016-12-07 00:03:00 -0500
committerHubert Figuière <hub@figuiere.net>2016-12-07 00:04:31 -0500
commit6071af09b5e263b63e57b28ab8a78484bc65e3fe (patch)
tree45f97ac82e5582684d889ede0fdacaf2c6eddf2e /XMPCommon/Utilities/TAtomicTypes_Linux.h
parent606a7df73750084a36fe69651e7b672333a76412 (diff)
Update to XMP SDK CC 2016.07
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__