diff options
Diffstat (limited to 'cpp/src/IcePatch2/Client.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Client.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/IcePatch2/Client.cpp b/cpp/src/IcePatch2/Client.cpp index 8427f0c8257..7cb8243d55d 100644 --- a/cpp/src/IcePatch2/Client.cpp +++ b/cpp/src/IcePatch2/Client.cpp @@ -169,7 +169,11 @@ private: keyPressed() { bool pressed = false; +#ifdef __BCPLUSPLUS__ + while(kbhit()) +#else while(_kbhit()) +#endif { pressed = true; _getch(); @@ -241,7 +245,7 @@ Client::run(int argc, char* argv[]) vector<string> args; try { - args = opts.parse(argc, argv); + args = opts.parse(argc, (const char**)argv); } catch(const IceUtil::Options::BadOpt& e) { |