Fix code portability issues.

(a) Trailing commas in enumerations at src/cff.cc (enum DICT_OPERAND_TYPE and enum DICT_DATA_TYPE) and src/cff_type2_charstring.h (enum Type2CharStringOperator). These are not strictly correct, and lead to compiler warnings or errors, depending on the specific compiler version and options being used.

(b) Some common headers, at least in a Windows environment, appear to #define macros for "min" and "max", leading to compilation failures in include/opentype-sanitiser.h where these names are used with the explicit std:: namespace prefix. This seems to me like a flaw in the headers I'm using, which should not define such macros in a C++ environment, but a simple workaround is to #undef the names after including the windows headers.

Review URL: http://code.google.com/p/chromium/issues/detail?id=53821
Patch from Jonathan Kew (Mozilla)



git-svn-id: http://ots.googlecode.com/svn/trunk@36 a4e77c2c-9104-11de-800e-5b313e0d2bf3
3 files changed
tree: f89a10c061c1f6e311c1abb6df2517c1405e837f
  1. include/
  2. src/
  3. test/
  4. tools/
  5. .ignores
  6. INSTALL
  7. LICENSE
  8. ots.gyp
  9. README