sile-typesetter / libtexpdf

A PDF library extracted from TeX's dvipdfmx
GNU General Public License v2.0
26 stars 8 forks source link

Port to MSVC with CMake script #6

Closed harrysummer closed 5 years ago

harrysummer commented 5 years ago

This is a supporting PR for the one in SILE. Please refer to https://github.com/simoncozens/sile/pull/567 for an overview of the big picture.

Note:

  1. off_t are changed into off64_t entirely, because Windows have a definition for off_t to 32-bit integer and it's hard to override.
  2. Not sure why there is undefined IS_KANJI function in dpxfile.c. Looks like it's jumping one byte if its a Chinese character in the spawn argument. This is hacky so I commented it anyway. May need fix in the future for non-Latin support.
simoncozens commented 5 years ago

Works for me with the new commit (2405616) to allow building on OS X.