mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
XKB: Remove a bunch of mad ifdefs
We have SEEK_SET and size_t, seriously. Also use DebugF instead of ifdef DEBUG, and ditch a couple of random bits that were never used.
This commit is contained in:
parent
0f12a448dc
commit
534fc5140b
16 changed files with 69 additions and 252 deletions
|
|
@ -39,12 +39,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include <xkbsrv.h>
|
||||
#include "xkbgeom.h"
|
||||
|
||||
#ifdef X_NOT_POSIX
|
||||
#define Size_t unsigned int
|
||||
#else
|
||||
#define Size_t size_t
|
||||
#endif
|
||||
|
||||
/***====================================================================***/
|
||||
|
||||
static void
|
||||
|
|
@ -465,7 +459,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…
Reference in a new issue