mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
Replace all instances of ssize_t with gssize
ssize_t is supported widely, but not universally, so use gssize instead. Currently only one piece of code actually *needs* this change to be compilable with MSVC, the rest are mostly in *nix parts of the code, but these are changed too, for symmetry. https://bugzilla.gnome.org/show_bug.cgi?id=788180
This commit is contained in:
committed by
Philip Withnall
parent
6abdc06da6
commit
4a77eb16ce
@@ -35,7 +35,7 @@ int
|
||||
read_all (int fd, char *buf, int len)
|
||||
{
|
||||
size_t bytes_read = 0;
|
||||
ssize_t count;
|
||||
gssize count;
|
||||
|
||||
while (bytes_read < len)
|
||||
{
|
||||
@@ -58,7 +58,7 @@ int
|
||||
write_all (int fd, char *buf, int len)
|
||||
{
|
||||
size_t bytes_written = 0;
|
||||
ssize_t count;
|
||||
gssize count;
|
||||
|
||||
while (bytes_written < len)
|
||||
{
|
||||
|
Reference in New Issue
Block a user