1. 27 11月, 2015 8 次提交
  2. 25 11月, 2015 4 次提交
  3. 24 11月, 2015 3 次提交
  4. 23 11月, 2015 2 次提交
  5. 22 11月, 2015 1 次提交
  6. 21 11月, 2015 3 次提交
  7. 20 11月, 2015 5 次提交
  8. 19 11月, 2015 8 次提交
  9. 18 11月, 2015 2 次提交
  10. 17 11月, 2015 1 次提交
    • C
      Fix build on MSVC >= 2012 · 167c3271
      Chun-wei Fan 提交于
      Use the DEFINE_ENUM_FLAG_OPERATORS macro in winnt.h on Visual Studio,
      which defines the bitwise operators for the enumerations that we want to
      mark as hb_mark_as_flags_t, which will take care of the situation on newer
      Visual Studio (>= 2012), where the build breaks with C2057 errors as the
      underlying types of the enumerations is not clear to the compiler when we
      do a bitwise op within the declaration of the enumerations themselves.
      
      Also disable the C4200 (nonstandard extension used : zero-sized array in
      struct/union) and C4800 ('type' : forcing value to bool 'true' or 'false'
      (performance warning)) warnings as the C4200 is the intended scenario and
      C4800 is harmless but is so far an unavoidable side effect of using
      DEFINE_ENUM_FLAG_OPERATORS.
      167c3271
  11. 16 11月, 2015 3 次提交
    • C
      hb-ot-shape-complex-arabic.cc: Fix build on Visual Studio · 4d27bb87
      Chun-wei Fan 提交于
      Visual Studio does not like declaring a enum variable within a for
      statement, so fix the build by declaring the enum before doing the for
      loop.
      4d27bb87
    • C
      MSVC builds: Add fallback implementation for pre-2013 MSVC · a49e7b7e
      Chun-wei Fan 提交于
      Pre-2013 MSVC does not have scalbn() and scalbnf(), which are used in the
      utility programs.  Add  fallback implementations for these, which can be
      used when necessary.
      a49e7b7e
    • C
      util: Fix build on Visual Studio · 998e8dda
      Chun-wei Fan 提交于
      Use the fallback implementation for lround() only on pre-2013 Visual
      Studio, and ensure we are clear about the types of the parameters for
      lround() and scalbnf(), since Visual Studio can be quite picky on
      ambiguous parameter types.  Also, use g_ascii_strcasecmp() rather than
      strcasecmp() as we are already using GLib for this code and we are
      assured that g_ascii_strcasemp() is available.
      
      For scalbnf() on pre-2013 Visaul Studio, a fallback implementation is
      needed, but use another forced-included header for those compilers, which
      will be added later.
      
      Also use (char)27 on Visual Studio builds as '\e' is not a recognized
      escape sequence, which will do the same thing.
      998e8dda