Sync Linux tweaks.

This commit is contained in:
JoelKatz
2011-11-07 13:45:32 -08:00
parent beef9b47d5
commit 1d140e8829
19 changed files with 2674 additions and 48 deletions

View File

@@ -1,9 +1,14 @@
#include "BitcoinUtil.h"
#include <stdarg.h>
#include <windows.h>
#include <openssl/rand.h>
#include <time.h>
#if defined(WIN32) || defined(WIN64)
#include <windows.h>
#else
#include <sys/time.h>
#endif
using namespace std;
std::string gFormatStr("v1");
@@ -45,7 +50,7 @@ string strprintf(const char* format, ...)
inline int64 GetPerformanceCounter()
{
int64 nCounter = 0;
#ifdef WIN32
#if defined(WIN32) || defined(WIN64)
QueryPerformanceCounter((LARGE_INTEGER*)&nCounter);
#else
timeval t;