From 102b1fc05a166a78e866c1e58dd240218cf920ae Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 30 Aug 2006 07:05:50 +0000
Subject: [PATCH] Windows.h sucks.  filewrap.h and gen_defs.h both include it.
 Deal with it by preventing wincrypt.h from being loaded with windows.h by
 defining WIN32_LEAN_AND_MEAN and NOCRYPT

(Do we really NEED windows.h?  It is nastiness beyond compare!)
---
 src/syncterm/syncterm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/syncterm/syncterm.c b/src/syncterm/syncterm.c
index a775b4527e..26f1ac0d74 100644
--- a/src/syncterm/syncterm.c
+++ b/src/syncterm/syncterm.c
@@ -1,5 +1,8 @@
 /* $Id$ */
 
+#define NOCRYPT		/* Stop windows.h from loading wincrypt.h */
+					/* Is windows.h REALLY necessary?!?! */
+#define WIN32_LEAN_AND_MEAN
 #include <sys/stat.h>
 #ifdef _WIN32
 #include <shlobj.h>
@@ -16,11 +19,11 @@
 #include "cterm.h"
 #include "allfonts.h"
 
+#include "st_crypt.h"
 #include "fonts.h"
 #include "syncterm.h"
 #include "bbslist.h"
 #include "conn.h"
-#include "st_crypt.h"
 #include "term.h"
 #include "uifcinit.h"
 #include "window.h"
-- 
GitLab