diff options
Diffstat (limited to 'Build/source/utils/pmx/w32getc.c')
-rw-r--r-- | Build/source/utils/pmx/w32getc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/utils/pmx/w32getc.c b/Build/source/utils/pmx/w32getc.c new file mode 100644 index 00000000000..e9147407298 --- /dev/null +++ b/Build/source/utils/pmx/w32getc.c @@ -0,0 +1,14 @@ +#include <stdio.h> +int w32getc(FILE *f) +{ + int c; + c = getc(f); + if(c=='\r') { + c = getc(f); + if(c!='\n') { + ungetc(c,f); + c='\r'; + } + } + return c; +} |