media/libvpx/stdint.patch

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 diff --git a/media/libvpx/vpx/vpx_integer.h b/media/libvpx/vpx/vpx_integer.h
     2 --- a/media/libvpx/vpx/vpx_integer.h
     3 +++ b/media/libvpx/vpx/vpx_integer.h
     4 @@ -10,16 +10,18 @@
     7  #ifndef VPX_INTEGER_H
     8  #define VPX_INTEGER_H
    10  /* get ptrdiff_t, size_t, wchar_t, NULL */
    11  #include <stddef.h>
    13 +#if !defined(VPX_DONT_DEFINE_STDINT_TYPES)
    14 +
    15  #if (defined(_MSC_VER) && (_MSC_VER < 1600)) || defined(VPX_EMULATE_INTTYPES)
    16  typedef signed char  int8_t;
    17  typedef signed short int16_t;
    18  typedef signed int   int32_t;
    20  typedef unsigned char  uint8_t;
    21  typedef unsigned short uint16_t;
    22  typedef unsigned int   uint32_t;
    23 @@ -47,16 +49,18 @@ typedef unsigned int   uintptr_t;
    25  #if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS)
    26  #define __STDC_FORMAT_MACROS
    27  #endif
    28  #include <stdint.h>
    30  #endif
    32 +#endif
    33 +
    34  /* VS2010 defines stdint.h, but not inttypes.h */
    35  #if defined(_MSC_VER)
    36  #define PRId64 "I64d"
    37  #else
    38  #include <inttypes.h>
    39  #endif
    41  #endif

mercurial