diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-11-15 15:06:52 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-11-15 15:06:52 +0000 |
commit | 59e48918e7c252926bb5e51a077bcbc8a7eec829 (patch) | |
tree | f5801b920fd8457d1c3e50576f0106290c66e4cb /xkbcomp.c | |
parent | 0336e043fab6f2a8828d90bc9eef2e23878f6dd1 (diff) |
Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802 Addedsco_port_update-baseXORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901XORG-6_8_99_900XORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_16XORG-6_8_99_15XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10XORG-6_8_99_1
mingw (Win32) port
Diffstat (limited to 'xkbcomp.c')
-rw-r--r-- | xkbcomp.c | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -54,6 +54,13 @@ #define chdir _chdir2 #endif +#ifdef WIN32 +#define S_IRGRP 0 +#define S_IWGRP 0 +#define S_IROTH 0 +#define S_IWOTH 0 +#endif + #define lowbit(x) ((x) & (-(x))) /***====================================================================***/ @@ -487,7 +494,14 @@ register int i,tmp; else if (uStringEqual(inputFile,"-")) { inputFormat= INPUT_XKB; } +#ifndef WIN32 else if (strchr(inputFile,':')==0) { +#else + else if ((strchr(inputFile,':')==0) || ( + strlen(inputFile) > 2 && + isalpha(inputFile[0]) && + inputFile[1] == ':' && strchr(inputFile + 2,':')==NULL)) { +#endif int len; len= strlen(inputFile); if (inputFile[len-1]==')') { @@ -611,6 +625,12 @@ register int i,tmp; *ch++= '.'; strcpy(ch,fileTypeExt[outputFormat]); } +#ifdef WIN32 + else if (strlen(outputFile) > 2 && + isalpha(outputFile[0]) && + outputFile[1] == ':' && strchr(outputFile + 2,':')==NULL) { + } +#endif else if (strchr(outputFile,':')!=NULL) { outDpyName= outputFile; outputFile= NULL; @@ -899,7 +919,12 @@ Status status; ACTION("Exiting\n"); exit(1); } +#ifndef WIN32 out= fdopen(outputFileFd, openMode); +#else + close(outputFileFd); + out= fopen(outputFile, "wb"); +#endif /* end BR */ if (out==NULL) { ERROR1("Cannot open \"%s\" to write keyboard description\n", |