blob: ffca33d796576f62dda41d2a36da56956e857146 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
diff --git a/lcm/windows/WinPorting.cpp b/lcm/windows/WinPorting.cpp
index e22acd6..b9c7e69 100644
--- a/lcm/windows/WinPorting.cpp
+++ b/lcm/windows/WinPorting.cpp
@@ -1,8 +1,8 @@
#define _WIN32_WINNT 0x0501
-#include <Mswsock.h>
#include <stdio.h>
#include <winsock2.h>
+#include <Mswsock.h>
#include "WinPorting.h"
diff --git a/lcmgen/emit_go.c b/lcmgen/emit_go.c
index c520044..b5be56a 100644
--- a/lcmgen/emit_go.c
+++ b/lcmgen/emit_go.c
@@ -6,8 +6,13 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifdef WIN32
+#include <io.h>
+#else
#include <unistd.h>
+#endif
#ifdef WIN32
+#define F_OK 0
#define __STDC_FORMAT_MACROS // Enable integer types
#endif
|