[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SSIZE_MAX
From: |
Ben Pfaff |
Subject: |
SSIZE_MAX |
Date: |
Sat, 03 Jun 2006 14:35:04 -0700 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Gnulib includes a module for ssize_t, but it doesn't ensure that
SSIZE_MAX is available. It seems that an ssize_t.h header file
with the following contents would be sufficient:
#include <limits.h>
#ifndef SSIZE_MAX
# define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2))
#endif
A few of the source files in lib/ already include something like
this.
--
"If a person keeps faithfully busy each hour of the working day, he
can count on waking up some morning to find himself one of the
competent ones of his generation."
--William James