mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-05 05:18:03 +02:00
Assume size_t is always available, since it was defined in C89
Don't provide a fallback definition #ifdef X_NOT_POSIX anymore. We already use size_t throughout the rest of Xlib, just had this one instance left in XKBGAlloc.c of a fallback definition. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
9bcfd84aa1
commit
c23d61d1b8
1 changed files with 1 additions and 8 deletions
|
|
@ -37,13 +37,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include <X11/extensions/XKBgeom.h>
|
||||
#include <X11/extensions/XKBproto.h>
|
||||
|
||||
|
||||
#ifdef X_NOT_POSIX
|
||||
#define Size_t unsigned int
|
||||
#else
|
||||
#define Size_t size_t
|
||||
#endif
|
||||
|
||||
/***====================================================================***/
|
||||
|
||||
static void
|
||||
|
|
@ -464,7 +457,7 @@ _XkbGeomAlloc( XPointer * old,
|
|||
unsigned short * num,
|
||||
unsigned short * total,
|
||||
int num_new,
|
||||
Size_t sz_elem)
|
||||
size_t sz_elem)
|
||||
{
|
||||
if (num_new<1)
|
||||
return Success;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue