Use standard type definitions on all platforms
authorGraeme Leese <gleese@broadcom.com>
Fri, 22 Oct 2021 11:24:38 +0000 (12:24 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 10 Mar 2022 19:26:15 +0000 (19:26 +0000)
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

framework/delibs/debase/deDefs.h

index fa19567..2e8cdaf 100644 (file)
 #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 <basetsd.h>
-               typedef INT_PTR                 deIntptr;
-               typedef UINT_PTR                deUintptr;
-#      elif (DE_OS == DE_OS_WIN32)
-#              include <crtdefs.h>
-               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 <stddef.h>
-#      include <stdint.h>
-       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 <stddef.h>
+#include <stdint.h>
+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;