I'm trying to compile up CouchDB 2.0 on Windows, using Joan Touzet's PowerShell script. This used to work, but the 1.1.3 Snappy update in October broke Windows compatibility, as it uses the ssize_t type, which MS C++ does not understand.
The original google/snappy repository code deals with this in autoconf, but that is not in use in the CouchDB version. There is a work-around by #including <BaseTsd.h>, but I'm not sure where the best place to put it would be. The couchdb-snappy/c_src/snappy files are all directly lifted from google/snappy, and it would be a shame to make CouchDB-specific changes to them. Would it make sense to put the Windows code into couchdb-snappy/c_src/snappy_nif.cc? If someone can suggest the best place to put the work-around, I can submit a pull request. Thanks, Nick
