diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2017-02-15 22:35:52 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2017-02-15 22:35:52 +0200 |
| commit | 96fad648096614c13e784f11f0e90a583e567de1 (patch) | |
| tree | 24931f887bc29764a2db1b1ed09b5a7b268d16c8 /src/win32.h | |
| parent | d94ae26d161be87c58906dac10519e8156469923 (diff) | |
| download | mqtt-96fad648096614c13e784f11f0e90a583e567de1.tar.gz mqtt-96fad648096614c13e784f11f0e90a583e567de1.zip | |
Make the code compile using MinGW
- implemented GetCurrentTime() for Windows
- had to rename GetCurrentTime() to MqttGetCurrentTime() because of name
clashes
- setup headers correctly
Diffstat (limited to 'src/win32.h')
| -rw-r--r-- | src/win32.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/win32.h b/src/win32.h new file mode 100644 index 0000000..b12ca23 --- /dev/null +++ b/src/win32.h @@ -0,0 +1,10 @@ +#ifndef MQTT_WIN32_H +#define MQTT_WIN32_H + +#if defined(_WIN32) +#include <winsock2.h> +#include <ws2tcpip.h> +#include <windows.h> +#endif + +#endif |
