Skip to content

Commit bff31c8

Browse files
Remove Windows-only preprocessor macros
This caused builds with macOS to fail, however since this is the serial driver, this isn't a meaningful change as its not maintained and slated for removal. This however does clear build failures with macOS.
1 parent ae5b796 commit bff31c8

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/main/native/cpp/Drivers/Serial/SerialDevice.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
*/
2828

29-
#ifdef _WIN32
30-
3129
#include "rev/Drivers/SerialPort/SerialDevice.h"
3230

3331
#include <iostream> //TODO: Remove
@@ -155,7 +153,3 @@ bool SerialDevice::IsConnected()
155153

156154
} // namespace usb
157155
} // namespace rev
158-
159-
#else
160-
typedef int __ISOWarning__CLEAR_;
161-
#endif // _WIN32

src/main/native/cpp/Drivers/Serial/SerialDriver.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
*/
2828

29-
#ifdef _WIN32
30-
3129
#include "rev/Drivers/SerialPort/SerialDriver.h"
3230
#include "rev/Drivers/SerialPort/SerialDevice.h"
3331
#include "rev/CANBridgeUtils.h"
@@ -81,7 +79,3 @@ std::unique_ptr<CANDevice> SerialDriver::CreateDeviceFromDescriptor(const char*
8179

8280
} // namespace usb
8381
} // namespace rev
84-
85-
#else
86-
typedef int __ISOWarning__CLEAR_;
87-
#endif // _WIN32

0 commit comments

Comments
 (0)