oga's tools
Revision | 5453f60cf886314ca0000fe77d4e56de02059eb0 (tree) |
---|---|
Time | 2014-02-01 16:13:16 |
Author | oga <oga@mxg....> |
Commiter | oga |
change for VC
@@ -26,6 +26,11 @@ | ||
26 | 26 | #include <string.h> |
27 | 27 | #include <time.h> |
28 | 28 | |
29 | +#ifdef _WIN32 | |
30 | +#include <windows.h> | |
31 | +#define sleep(x) Sleep(((x)*1000)) | |
32 | +#endif | |
33 | + | |
29 | 34 | #define dprintf if (vf) printf |
30 | 35 | #define ISKANJI(c) ((c >= 0x80 && c < 0xa0) || (c >= 0xe0 && c<0xff)) |
31 | 36 | #define SCRN_ORGX 50 /* screen origin X */ |
@@ -34,10 +39,6 @@ | ||
34 | 39 | /*#define TRAIN2 "□□□" /* train char 2 */ |
35 | 40 | #define TRAIN2 "[][][]" /* train char 2 */ |
36 | 41 | |
37 | -#ifdef _WIN32 | |
38 | -#define sleep(x) Sleep((x)*1000) | |
39 | -#endif | |
40 | - | |
41 | 42 | /* globals */ |
42 | 43 | int vf = 0; /* verbose flag (-v) */ |
43 | 44 | int lf = 0; /* list flag (-l) */ |