]> granicus.if.org Git - nethack/commitdiff
wince build fix (from <Someone>)
authornethack.allison <nethack.allison>
Sun, 7 Dec 2003 01:33:25 +0000 (01:33 +0000)
committernethack.allison <nethack.allison>
Sun, 7 Dec 2003 01:33:25 +0000 (01:33 +0000)
[this is not meant to trigger re-packaging for 3.4.3]

Windows CE defines leave as part of exception handling (__leave)
It confilicts with existing sources and since we don't use exceptions
it is safe to undefine it

include/wceconf.h

index ed884dd9d820a549c082a58f79307e2650fdf751..ebd0c4cebc17320acddca620050447ff113d2a05 100644 (file)
@@ -43,6 +43,8 @@
 
 #define USER_SOUNDS
 
+#define AUTOPICKUP_EXCEPTIONS
+
 /*
  * -----------------------------------------------------------------
  *  The remaining code shouldn't need modification.
@@ -348,4 +350,11 @@ extern long   __cdecl ftell(FILE * f);
 # undef ARM
 # endif
 
+/* leave - Windows CE defines leave as part of exception handling (__leave)
+   It confilicts with existing sources and since we don't use exceptions it is safe 
+   to undefine it */
+# ifdef leave
+# undef leave
+# endif
+
 #endif /* WCECONF_H */