Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

ssize_t is from POSIX and not from the C standard #26

Open
jimsch opened this issue May 16, 2015 · 1 comment
Open

ssize_t is from POSIX and not from the C standard #26

jimsch opened this issue May 16, 2015 · 1 comment

Comments

@jimsch
Copy link
Contributor

jimsch commented May 16, 2015

The serialization code is using ssize_t rather than size_t so that it can mark errors with a negative value. The problem with this is that ssize_t is not part of standard C and therefore is not supported by all compilers.

Should we change this or should we just have non-supporting compilers re-define ssize_t appropriately?

Note that the Microsoft compiler is one of the ones which does not support this type.

@hildjj
Copy link
Contributor

hildjj commented May 22, 2015

I would recommend defining ssize_t when needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants