]> granicus.if.org Git - nethack/commitdiff
more Windows gcc cleanup
authornhmall <nhmall@nethack.org>
Fri, 30 Nov 2018 03:32:36 +0000 (22:32 -0500)
committernhmall <nhmall@nethack.org>
Fri, 30 Nov 2018 03:32:36 +0000 (22:32 -0500)
Still not finished

include/ntconf.h
sys/winnt/nttty.c
sys/winnt/stubs.c

index 73d421fd86314c84c1987c13f18c81616c1750b1..bf98fec65e89a4124b28611304e77d81a2c54412 100644 (file)
@@ -94,6 +94,15 @@ extern void FDECL(interject, (int));
  *===============================================
  */
 
+#ifdef __MINGW32__
+#ifdef strncasecmp
+#undef strncasecmp
+#endif
+#ifdef strcasecmp
+#undef strcasecmp
+#endif
+#endif
 #ifdef _MSC_VER
 #if (_MSC_VER > 1000)
 /* Visual C 8 warning elimination */
index 579125867a5d0492856e8b253ec756f6a378af59..b71133af21e6a4b77b48419536917211b04ce531 100644 (file)
@@ -1889,7 +1889,7 @@ void nethack_enter_nttty()
             error("Unable to load nhraykey.dll");
     }
 }
-#endif TTY_GRAPHICS
+#endif /* TTY_GRAPHICS */
 
 /* this is used as a printf() replacement when the window
  * system isn't initialized yet
index bb5ad82e432b246ea94bcf80a412f29f571af084..123ae3b72b167440bbf1f49e3da62ae00fa96eba 100644 (file)
@@ -7,7 +7,7 @@
 
 #ifdef GUISTUB
 #ifdef TTYSTUB
-#error You can't compile this with both GUISTUB and TTYSTUB defined.
+#error You cannot compile this with both GUISTUB and TTYSTUB defined.
 #endif
 
 int GUILaunched;