Wed, 03 Aug 2022 15:44:46 +0200
remove currently unused ssize_t definition
src/cx/common.h | file | annotate | diff | comparison | revisions | |
test/selftest.cpp | file | annotate | diff | comparison | revisions |
--- a/src/cx/common.h Mon Jul 25 15:40:27 2022 +0200 +++ b/src/cx/common.h Wed Aug 03 15:44:46 2022 +0200 @@ -104,12 +104,6 @@ ); #ifdef _WIN32 -#if !(defined __ssize_t_defined || defined _SSIZE_T_) -#include <BaseTsd.h> -typedef SSIZE_T ssize_t; -#define __ssize_t_defined -#define _SSIZE_T_ -#endif /* __ssize_t_defined and _SSIZE_T */ #ifndef __WORDSIZE #ifdef _WIN64 #define __WORDSIZE 64
--- a/test/selftest.cpp Mon Jul 25 15:40:27 2022 +0200 +++ b/test/selftest.cpp Wed Aug 03 15:44:46 2022 +0200 @@ -39,7 +39,5 @@ } TEST(SelfTest, CommonDefinitions) { - // the following lines won't compile when the definitions are missing EXPECT_EQ(__WORDSIZE, 8 * sizeof(void*)); - EXPECT_EQ(sizeof(ssize_t), sizeof(size_t)); }