Skip to content

Commit

Permalink
Remove unused WinDivert runtime functions.
Browse files Browse the repository at this point in the history
Shrinks the exe by a few KBs.
  • Loading branch information
basil00 committed Aug 31, 2019
1 parent aab13c6 commit 146370d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CC = i686-w64-mingw32-gcc
WINDRES = i686-w64-mingw32-windres
CFLAGS = -Os -Iinclude/ -m32 -Wall -s -DPSAPI_VERSION=1 -D_WIN32_WINNT=0x0600
CFLAGS = -Os -Iinclude/ -m32 -Wall -s -DPSAPI_VERSION=1 -D_WIN32_WINNT=0x0600 \
-Wno-unused-function
PROG = WinDivertTool.exe

all:
Expand Down
1 change: 1 addition & 0 deletions WinDivertTool.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
/* WINDIVERT.DLL */
/****************************************************************************/

#define WINDIVERTEXPORT static
#include "dll/windivert.c"

#include <windows.h>
Expand Down

0 comments on commit 146370d

Please sign in to comment.