]> granicus.if.org Git - graphviz/commit
API BREAK: fix: typedef 'ssize_t' to 'SSIZE_T' on Windows
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 7 Feb 2022 05:29:27 +0000 (16:29 +1100)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 8 Feb 2022 02:27:22 +0000 (13:27 +1100)
commitd56ff9fd7590e925e9211db213719886fb0c307e
treee127e9b31da30e672edc1db4ab3cfeadea33cd8d
parentd2f6614741f494562eb36194856ad146c32fb32b
API BREAK: fix: typedef 'ssize_t' to 'SSIZE_T' on Windows

In several places, code was using `int` as a drop-in replacement for `ssize_t`
on Windows where it does not exist. This is incorrect on some platforms. E.g. on
x86-64 this will result in `ssize_t` being a 32-bit type instead of a 64-bit
type. This change replaces it with the correct Windows equivalent, `SSIZE_T`.¹

¹ https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types?redirectedfrom=MSDN#ssize_t

Gitlab: fixes #1804
CHANGELOG.md
config-cmake.h.in
lib/gvpr/gvpr.h
windows/include/config.h
windows/include/unistd.h