--- branches/linux-serial/Serial.h 2007/02/05 01:10:50 48 +++ branches/linux-serial/Serial.h 2007/02/05 07:06:43 49 @@ -11,7 +11,7 @@ #include typedef std::vector UCVector; -#ifndef _WINDOWS // +#ifndef _MSC_VER // inline void Sleep(int x) { usleep(x*1000);} #include #endif @@ -19,7 +19,7 @@ class CSerial { -#ifdef _WINDOWS +#ifdef _MSC_VER HANDLE mComport; DCB mDcbRestore; #else @@ -42,7 +42,7 @@ int readByte(); void writeByte(unsigned char out); -#ifdef _WINDOWS +#ifdef _MSC_VER COMSTAT getComstat() const; #endif int bytesReady() const; @@ -57,7 +57,7 @@ protected: void printByte(char* description, unsigned char byte); -#ifdef _WINDOWS +#ifdef _MSC_VER void openWindows(); #else void openLinux();