]> granicus.if.org Git - nethack/commitdiff
non-Unix build was broken today
authornhmall <mjnh@persona.ca>
Tue, 31 Mar 2015 23:07:25 +0000 (19:07 -0400)
committernhmall <mjnh@persona.ca>
Tue, 31 Mar 2015 23:07:25 +0000 (19:07 -0400)
 Changes to be committed:
modified:   src/cmd.c

../src/cmd.c(515) : warning C4013: 'check_user_string' undefined; assuming extern returning int)
link error - cmd.o : error LNK2019:
unresolved external symbol _check_user_string referenced in function _enter_explore_mode

src/cmd.c

index b028c57a3d3a888c069ea922672ebfecb2eec10e..3798a4fb03a5ea02df2579ef4386ba72175d2afb 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -510,12 +510,14 @@ enter_explore_mode(VOID_ARGS)
        You("are already in explore mode.");
     } else {
 #ifdef SYSCF
+# if defined(UNIX)
        if (!sysopt.explorers ||
            !sysopt.explorers[0] ||
            !check_user_string(sysopt.explorers)) {
            You("cannot access explore mode.");
            return 0;
        }
+# endif
 #endif
        pline(
         "Beware!  From explore mode there will be no return to normal game.");