Skip to content

Commit 5340c92

Browse files
committed
fix Windows build failure in rotator module
1 parent b0d7a28 commit 5340c92

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/rotator.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#define _GNU_SOURCE
2+
#if defined(_WIN32) || defined(_WIN64)
3+
#define WIN32_LEAN_AND_MEAN
4+
#define NOGDI
5+
#define NOUSER
6+
typedef struct tagMSG *LPMSG;
7+
#endif
28
#include "rotator.h"
39
#include "astro.h"
410
#include <math.h>
@@ -9,7 +15,6 @@
915
#if defined(_WIN32) || defined(_WIN64)
1016
#include <winsock2.h>
1117
#include <ws2tcpip.h>
12-
#include <windows.h>
1318
#else
1419
#include <arpa/inet.h>
1520
#include <netdb.h>

0 commit comments

Comments
 (0)