From: Graeme Leese Date: Fri, 22 Oct 2021 11:24:38 +0000 (+0100) Subject: Use standard type definitions on all platforms X-Git-Tag: upstream/1.3.5~386 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa66a396f6ba5e82a45cd76bc024c1c74e209b15;p=platform%2Fupstream%2FVK-GL-CTS.git Use standard type definitions on all platforms These definitions are used in the Vulkan headers, so they are guaranteed to be available on all platforms that the CTS supports. Trying to define things in terms of other types is unnecessarily complicated. This is a first small step towards using the standard types everywhere in the CTS. Component: Framework Affects: * Change-Id: I492dff86e4f6521703feac1d6398d791a579b6fd --- diff --git a/framework/delibs/debase/deDefs.h b/framework/delibs/debase/deDefs.h index fa19567..2e8cdaf 100644 --- a/framework/delibs/debase/deDefs.h +++ b/framework/delibs/debase/deDefs.h @@ -160,40 +160,19 @@ #endif /* Sized data types. */ -typedef signed char deInt8; -typedef signed short deInt16; -typedef signed int deInt32; -typedef unsigned char deUint8; -typedef unsigned short deUint16; -typedef unsigned int deUint32; - -#if (DE_COMPILER == DE_COMPILER_MSC) - typedef signed __int64 deInt64; - typedef unsigned __int64 deUint64; - -# if (DE_OS == DE_OS_WINCE) -# include - typedef INT_PTR deIntptr; - typedef UINT_PTR deUintptr; -# elif (DE_OS == DE_OS_WIN32) -# include - typedef intptr_t deIntptr; - typedef uintptr_t deUintptr; -# else -# error Define intptr types. -# endif - -#elif (DE_COMPILER == DE_COMPILER_GCC) || (DE_COMPILER == DE_COMPILER_CLANG) - /* \note stddef.h is needed for size_t definition. */ -# include -# include - typedef int64_t deInt64; - typedef uint64_t deUint64; - typedef intptr_t deIntptr; - typedef uintptr_t deUintptr; -#else -# error Define 64-bit and intptr types. -#endif +/* \note stddef.h is needed for size_t definition. */ +#include +#include +typedef int8_t deInt8; +typedef uint8_t deUint8; +typedef int16_t deInt16; +typedef uint16_t deUint16; +typedef int32_t deInt32; +typedef uint32_t deUint32; +typedef int64_t deInt64; +typedef uint64_t deUint64; +typedef intptr_t deIntptr; +typedef uintptr_t deUintptr; /** Boolean type. */ typedef int deBool;