Stefan Schuermans commited on 2017-10-28 20:24:17
Showing 2 changed files, with 3 additions and 1 deletions.
"winsock2.h" must be included before "windows.h". So if some file needs "winsock2.h", no other file may include "windows.h" without including "winsock2.h" first.
... | ... |
@@ -3,9 +3,10 @@ |
3 | 3 |
Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html |
4 | 4 |
a blinkenarea.org project */ |
5 | 5 |
|
6 |
+#include <winsock2.h> // not allowed after windows.h, so include here |
|
7 |
+#include <windows.h> |
|
6 | 8 |
#include <math.h> |
7 | 9 |
#include <stdint.h> |
8 |
-#include <windows.h> |
|
9 | 10 |
|
10 | 11 |
#include "Time.h" |
11 | 12 |
|