fix to previous dht fix. removed some deprication warnings on msvc-8. various fixes

This commit is contained in:
Arvid Norberg
2007-03-02 01:16:59 +00:00
parent 8e844494a3
commit 83c2039ff7
6 changed files with 20 additions and 11 deletions

View File

@@ -35,6 +35,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <iterator>
#include <exception>
#include "libtorrent/config.hpp"
#ifdef _MSC_VER
#pragma warning(push, 1)
#endif
@@ -75,9 +77,9 @@ using boost::bind;
bool sleep_and_input(char* c)
{
Sleep(500);
if (kbhit())
if (_kbhit())
{
*c = getch();
*c = _getch();
return true;
}
return false;