Parcourir la source

Fixed struct timeval undeclared on Windows

Paul-Louis Ageneau il y a 4 ans
Parent
commit
c929be592b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      examples/streamer/helpers.cpp

+ 2 - 1
examples/streamer/helpers.cpp

@@ -21,7 +21,8 @@
 
 #ifdef _WIN32
 // taken from https://stackoverflow.com/questions/10905892/equivalent-of-gettimeday-for-windows
-#include <Windows.h>
+#include <windows.h>
+#include <winsock2.h> // for struct timeval
 
 struct timezone {
     int tz_minuteswest;