File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 99#include < cstring>
1010#include < algorithm>
1111
12+ #ifdef __APPLE__
13+ #include < libkern/OSByteOrder.h>
14+ #define htobe16 (x ) OSSwapHostToBigInt16(x)
15+ #else
16+ #if defined(_WIN16) || defined(_WIN32) || defined(_WIN64) || defined(__WINDOWS__)
17+ #include < winsock2.h>
18+ #define htobe16 (x ) htons(x)
19+ #else
20+ #include < endian.h>
21+ #endif // windows
22+ #endif /* __APPLE__ */
23+
1224#include " ../../include/debug.h"
1325#include " ../../include/pinmap.h"
1426
Original file line number Diff line number Diff line change 2626#define OUTPUT_BUFFER_SIZE 65535
2727#define SPECIAL_BUFFER_SIZE 256
2828
29+ typedef struct {
30+ uint16_t avail;
31+ uint8_t conn, err;
32+ } NDeviceStatus;
33+
2934class drivewireNetwork : public virtualDevice
3035{
3136
You can’t perform that action at this time.
0 commit comments