Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ifeq ($(MINGW), YES)
LDLIBS += -lsetupapi -lws2_32
SHLDLIBS = $(LDLIBS)
override CPPFLAGS += -DNTDDI_VERSION=NTDDI_VISTA -D_WIN32_WINNT=_WIN32_WINNT_VISTA
override CFLAGS += -D__USE_MINGW_ANSI_STDIO
override CFLAGS += -D__USE_MINGW_ANSI_STDIO -DNCURSES_STATIC
else
EXENAME ?= switchtec
INSTEXENAME ?= $(EXENAME)
Expand Down
8 changes: 0 additions & 8 deletions inc/switchtec/mfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@
#define STOP 0xFF
#define SET_XMODE_NONE 0x55

typedef unsigned long DWORD_PTR, *PDWORD_PTR;
Copy link
Collaborator Author

@vaibhaavram01 vaibhaavram01 Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already moved to ini.h. Removed to fix re-declaration warning

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay


#define LOBYTE(w) ((BYTE)(((DWORD_PTR)(w)) & 0xff))
#define HIBYTE(w) ((BYTE)((((DWORD_PTR)(w)) >> 8) & 0xff))
#define LOWORD(l) ((WORD)(((DWORD_PTR)(l)) & 0xffff))
#define HIWORD(l) ((WORD)((((DWORD_PTR)(l)) >> 16) & 0xffff))


typedef unsigned long DWORD;
typedef int BOOL;
typedef unsigned char BYTE;
Expand Down
1 change: 0 additions & 1 deletion lib/mfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
#include <stdio.h>
#include <string.h>
#include <openssl/sha.h>
#include <arpa/inet.h>
#include <iconv.h>

#include "lib/crc.h"
Expand Down