|
@@ -44,8 +44,10 @@ typedef int BOOL;
|
|
|
#define RS_STATUS 0x03
|
|
|
|
|
|
#define esc 0x1b
|
|
|
+#ifdef linux
|
|
|
#define true 1
|
|
|
#define false 0
|
|
|
+#endif //linux
|
|
|
|
|
|
#define TIM_OUT_BIT 0x8000
|
|
|
#define XMT_RDV_BIT 0x2000
|
|
@@ -70,8 +72,10 @@ typedef int BOOL;
|
|
|
#define SET_BIM "\033\061"
|
|
|
#define LINE_BUFSIZ 640 //hz, change 240, now, can write 40 chinese word
|
|
|
|
|
|
+#ifdef linux
|
|
|
#define true 1
|
|
|
#define false 0
|
|
|
+#endif //linux
|
|
|
|
|
|
#define YES 1
|
|
|
#define NO 0
|