Skip to content

Commit 4446b93

Browse files
authored
Merge pull request #14 from MicrochipTech/feature/windows_fix
Fixed Windows build failure
2 parents 6ce53d0 + bc7e5c1 commit 4446b93

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ifeq ($(MINGW), YES)
7373
LDLIBS += -lsetupapi -lws2_32
7474
SHLDLIBS = $(LDLIBS)
7575
override CPPFLAGS += -DNTDDI_VERSION=NTDDI_VISTA -D_WIN32_WINNT=_WIN32_WINNT_VISTA
76-
override CFLAGS += -D__USE_MINGW_ANSI_STDIO
76+
override CFLAGS += -D__USE_MINGW_ANSI_STDIO -DNCURSES_STATIC
7777
else
7878
EXENAME ?= switchtec
7979
INSTEXENAME ?= $(EXENAME)

inc/switchtec/mfg.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,6 @@
113113
#define STOP 0xFF
114114
#define SET_XMODE_NONE 0x55
115115

116-
typedef unsigned long DWORD_PTR, *PDWORD_PTR;
117-
118-
#define LOBYTE(w) ((BYTE)(((DWORD_PTR)(w)) & 0xff))
119-
#define HIBYTE(w) ((BYTE)((((DWORD_PTR)(w)) >> 8) & 0xff))
120-
#define LOWORD(l) ((WORD)(((DWORD_PTR)(l)) & 0xffff))
121-
#define HIWORD(l) ((WORD)((((DWORD_PTR)(l)) >> 16) & 0xffff))
122-
123-
124116
typedef unsigned long DWORD;
125117
typedef int BOOL;
126118
typedef unsigned char BYTE;

lib/mfg.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
#include <stdio.h>
5757
#include <string.h>
5858
#include <openssl/sha.h>
59-
#include <arpa/inet.h>
6059
#include <iconv.h>
6160

6261
#include "lib/crc.h"

0 commit comments

Comments
 (0)