mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +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
|
|
@ -43,14 +43,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include <xkbsrv.h>
|
||||
#include <X11/extensions/XI.h>
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#ifdef MAXPATHLEN
|
||||
#define PATH_MAX MAXPATHLEN
|
||||
#else
|
||||
#define PATH_MAX 1024
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
/* from ddxLoad.c */
|
||||
extern const char* Win32TempDir();
|
||||
|
|
@ -199,9 +191,8 @@ char tmpname[PATH_MAX];
|
|||
#ifndef WIN32
|
||||
in= Popen(buf,"r");
|
||||
#else
|
||||
#ifdef DEBUG_CMD
|
||||
ErrorF("xkb executes: %s\n",buf);
|
||||
#endif
|
||||
if (xkbDebugFlags)
|
||||
DebugF("xkbList executes: %s\n",buf);
|
||||
if (System(buf) < 0)
|
||||
ErrorF("Could not invoke keymap compiler\n");
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue