projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1b7b46
)
Added missing SSIZE_MAX define
author
Armin Novak
<armin.novak@thincast.com>
Wed, 30 Jan 2019 14:11:51 +0000
(15:11 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Wed, 30 Jan 2019 17:05:49 +0000
(18:05 +0100)
winpr/include/winpr/wtypes.h.in
patch
|
blob
|
history
diff --git
a/winpr/include/winpr/wtypes.h.in
b/winpr/include/winpr/wtypes.h.in
index
cee7fdd
..
27f9898
100644
(file)
--- a/
winpr/include/winpr/wtypes.h.in
+++ b/
winpr/include/winpr/wtypes.h.in
@@
-517,6
+517,17
@@
typedef const BYTE* LPCBYTE;
#endif /* _MSC_VER */
#endif /* WINPR_HAVE_INTTYPES_H not defined*/
+#ifndef SSIZE_MAX
+#if defined(_POSIX_SSIZE_MAX)
+#define SSIZE_MAX _POSIX_SSIZE_MAX
+#elif defined(_WIN64)
+#define SSIZE_MAX _I64_MAX
+#elif defined(_WIN32)
+#define SSIZE_MAX LONG_MAX
+#else
+#define SSIZE_MAX LONG_MAX
+#endif
+#endif
#if defined(_MSC_VER) && _MSC_VER < 1900
/* %z not supported before MSVC 2015 */