• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

oga's tools


Commit MetaInfo

Revision5453f60cf886314ca0000fe77d4e56de02059eb0 (tree)
Time2014-02-01 16:13:16
Authoroga <oga@mxg....>
Commiteroga

Log Message

change for VC

Change Summary

Incremental Difference

--- a/ctrain.c
+++ b/ctrain.c
@@ -26,6 +26,11 @@
2626 #include <string.h>
2727 #include <time.h>
2828
29+#ifdef _WIN32
30+#include <windows.h>
31+#define sleep(x) Sleep(((x)*1000))
32+#endif
33+
2934 #define dprintf if (vf) printf
3035 #define ISKANJI(c) ((c >= 0x80 && c < 0xa0) || (c >= 0xe0 && c<0xff))
3136 #define SCRN_ORGX 50 /* screen origin X */
@@ -34,10 +39,6 @@
3439 /*#define TRAIN2 "□□□" /* train char 2 */
3540 #define TRAIN2 "[][][]" /* train char 2 */
3641
37-#ifdef _WIN32
38-#define sleep(x) Sleep((x)*1000)
39-#endif
40-
4142 /* globals */
4243 int vf = 0; /* verbose flag (-v) */
4344 int lf = 0; /* list flag (-l) */