Browse Source

#IQRV #comment libCMBPrint的编译

80374374 1 năm trước cách đây
mục cha
commit
2b2916e906
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      Other/libCMBPrint/CARD-v4.HPP

+ 4 - 0
Other/libCMBPrint/CARD-v4.HPP

@@ -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