From 58e3813d56813be8f4b246b662849d290802de6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 22 Feb 2012 19:54:07 +0100 Subject: [PATCH] Fix more MSVC fail, make console recognize 'man' command. --- library/Core.cpp | 6 +++--- library/include/Export.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/library/Core.cpp b/library/Core.cpp index d075d28f5..efcbb07d4 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -195,7 +195,7 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue cerr << "Invoking: " << command << endl; // let's see what we actually got - if(first=="help" || first == "?") + if(first=="help" || first == "?" || first == "man") { if(!parts.size()) { @@ -205,7 +205,7 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue "On Windows, you may have to resize your console window. The appropriate menu is accessible\n" "by clicking on the program icon in the top bar of the window.\n\n" "Basic commands:\n" - " help|? - This text.\n" + " help|?|man - This text.\n" " help COMMAND - Usage help for the given command.\n" " ls|dir [PLUGIN] - List available commands. Optionally for single plugin.\n" " cls - Clear the console.\n" @@ -350,7 +350,7 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue { con.print( "builtin:\n" - " help|? - This text or help specific to a plugin.\n" + " help|?|man - This text or help specific to a plugin.\n" " ls [PLUGIN] - List available commands. Optionally for single plugin.\n" " cls - Clear the console.\n" " fpause - Force DF to pause.\n" diff --git a/library/include/Export.h b/library/include/Export.h index 33930bc25..0befe6690 100644 --- a/library/include/Export.h +++ b/library/include/Export.h @@ -47,5 +47,5 @@ distribution. #define DFhackDataExport __attribute__ ((visibility("default"))) #else #define DFhackCExport extern "C" __declspec(dllexport) - #define DFhackDataExport __declspec(dllexport) -#endif \ No newline at end of file + #define DFhackDataExport extern "C" __declspec(dllexport) +#endif