Loading

Paste #pei2dbxyl

  1. Index: src/stdafx.h
  2. ===================================================================
  3. --- src/stdafx.h    (revision 27915)
  4. +++ src/stdafx.h    (working copy)
  5. @@ -383,7 +383,7 @@
  6.  /* Compile time assertions. Prefer c++0x static_assert().
  7.   * Older compilers cannot evaluate some expressions at compile time,
  8.   * typically when templates are involved, try assert_tcompile() in those cases. */
  9. -#if defined(__STDCXX_VERSION__) || defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(__GXX_EXPERIMENTAL_CPP0X__) || defined(static_assert)
  10. +#if defined(__STDCXX_VERSION__) || defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(__GXX_EXPERIMENTAL_CPP0X__) || defined(static_assert) || (defined(_MSC_VER) && _MSC_VER >= 1900)
  11.     /* __STDCXX_VERSION__ is c++0x feature macro, __GXX_EXPERIMENTAL_CXX0X__ is used by gcc, __GXX_EXPERIMENTAL_CPP0X__ by icc */
  12.     #define assert_compile(expr) static_assert(expr, #expr )
  13.     #define assert_tcompile(expr) assert_compile(expr)
  14. Index: src/viewport_sprite_sorter.h
  15. ===================================================================
  16. --- src/viewport_sprite_sorter.h    (revision 27915)
  17. +++ src/viewport_sprite_sorter.h    (working copy)
  18. @@ -37,7 +37,7 @@
  19.     int32 left;                     ///< minimal screen X coordinate of sprite (= x + sprite->x_offs), reference point for child sprites
  20.     int32 top;                      ///< minimal screen Y coordinate of sprite (= y + sprite->y_offs), reference point for child sprites
  21.  
  22. -   int first_child;                ///< the first child to draw.
  23. +   int32 first_child;                ///< the first child to draw.
  24.     bool comparison_done;           ///< Used during sprite sorting: true if sprite has been compared with all other sprites
  25.  };
  26.  
  27.  

Comments