link against winsock system lib rather than implementing ad-hoc ntohs, fix warning about redefined macro on windows

This commit is contained in:
Ed Bordin
2020-07-25 16:21:27 +10:00
parent 4bdf8a0dd5
commit c86dae6b62
3 changed files with 12 additions and 6 deletions
+5
View File
@@ -32,6 +32,11 @@
using namespace std;
#ifdef STATUS_TIMEOUT
// defined in the Windows headers included by libftdi.h
#undef STATUS_TIMEOUT
#endif
#define NOOP 0x02
#define ERASE_SRAM 0x05
#define READ_SRAM 0x03