media/libvpx/stdint.patch

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libvpx/stdint.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +diff --git a/media/libvpx/vpx/vpx_integer.h b/media/libvpx/vpx/vpx_integer.h
     1.5 +--- a/media/libvpx/vpx/vpx_integer.h
     1.6 ++++ b/media/libvpx/vpx/vpx_integer.h
     1.7 +@@ -10,16 +10,18 @@
     1.8 + 
     1.9 + 
    1.10 + #ifndef VPX_INTEGER_H
    1.11 + #define VPX_INTEGER_H
    1.12 + 
    1.13 + /* get ptrdiff_t, size_t, wchar_t, NULL */
    1.14 + #include <stddef.h>
    1.15 + 
    1.16 ++#if !defined(VPX_DONT_DEFINE_STDINT_TYPES)
    1.17 ++
    1.18 + #if (defined(_MSC_VER) && (_MSC_VER < 1600)) || defined(VPX_EMULATE_INTTYPES)
    1.19 + typedef signed char  int8_t;
    1.20 + typedef signed short int16_t;
    1.21 + typedef signed int   int32_t;
    1.22 + 
    1.23 + typedef unsigned char  uint8_t;
    1.24 + typedef unsigned short uint16_t;
    1.25 + typedef unsigned int   uint32_t;
    1.26 +@@ -47,16 +49,18 @@ typedef unsigned int   uintptr_t;
    1.27 + 
    1.28 + #if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS)
    1.29 + #define __STDC_FORMAT_MACROS
    1.30 + #endif
    1.31 + #include <stdint.h>
    1.32 + 
    1.33 + #endif
    1.34 + 
    1.35 ++#endif
    1.36 ++
    1.37 + /* VS2010 defines stdint.h, but not inttypes.h */
    1.38 + #if defined(_MSC_VER)
    1.39 + #define PRId64 "I64d"
    1.40 + #else
    1.41 + #include <inttypes.h>
    1.42 + #endif
    1.43 + 
    1.44 + #endif

mercurial