]> granicus.if.org Git - libvpx/commitdiff
vpx_integer.h: remove VPX_EMULATE_INTTYPES
authorJames Zern <jzern@google.com>
Thu, 20 Dec 2018 20:00:18 +0000 (12:00 -0800)
committerJames Zern <jzern@google.com>
Fri, 21 Dec 2018 00:07:41 +0000 (16:07 -0800)
platforms supported by the library all offer stdint.h

BUG=webm:1573

Change-Id: I2ad95dfbcfc2d1890c1b7e503340fda8a9849635

vpx/vpx_integer.h

index 249c781200750c37d90827c03661955cffcd91d8..4129d156f8a8569ec5c101de14450c1ddfc6415f 100644 (file)
 #define VPX_INLINE inline
 #endif
 
-#if defined(VPX_EMULATE_INTTYPES)
-typedef signed char int8_t;
-typedef signed short int16_t;
-typedef signed int int32_t;
-
-typedef unsigned char uint8_t;
-typedef unsigned short uint16_t;
-typedef unsigned int uint32_t;
-
-#ifndef _UINTPTR_T_DEFINED
-typedef size_t uintptr_t;
-#endif
-
-#else
-
-/* Most platforms have the C99 standard integer types. */
+/* Assume platforms have the C99 standard integer types. */
 
 #if defined(__cplusplus)
 #if !defined(__STDC_FORMAT_MACROS)
@@ -49,10 +34,7 @@ typedef size_t uintptr_t;
 #endif
 #endif  // __cplusplus
 
-#include <stdint.h>
-
-#endif  // defined(VPX_EMULATE_INTTYPES)
-
 #include <inttypes.h>
+#include <stdint.h>
 
 #endif  // VPX_VPX_VPX_INTEGER_H_