summaryrefslogtreecommitdiff
path: root/XMPCommon/Utilities/TAtomicTypes_Linux.h
blob: 79cbf8d60de63995648e68cfe3e66a88dc26a53b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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__