File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -381,6 +381,12 @@ typedef SSIZE_T ssize_t;
381
381
__attribute__((format(printf, string_index, check_index)))
382
382
#endif
383
383
384
+ #ifndef SSIZE_MAX
385
+ #define SSIZE_MAX ((ssize_t)((~(size_t)0) >> 1))
386
+ #endif
387
+ #ifndef SSIZE_MIN
388
+ #define SSIZE_MIN ((ssize_t)(~((~(size_t)0) >> 1)))
389
+ #endif
384
390
/* *****************************************************************************
385
391
Function Attributes
386
392
***************************************************************************** */
Original file line number Diff line number Diff line change @@ -344,6 +344,12 @@ typedef SSIZE_T ssize_t;
344
344
__attribute__((format(printf, string_index, check_index)))
345
345
#endif
346
346
347
+ #ifndef SSIZE_MAX
348
+ #define SSIZE_MAX ((ssize_t)((~(size_t)0) >> 1))
349
+ #endif
350
+ #ifndef SSIZE_MIN
351
+ #define SSIZE_MIN ((ssize_t)(~((~(size_t)0) >> 1)))
352
+ #endif
347
353
/* *****************************************************************************
348
354
Function Attributes
349
355
***************************************************************************** */
You can’t perform that action at this time.
0 commit comments