mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
Code maintenance for Qt 5:
- Added some more includes needed by MinGW-w64 git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6861 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9095e9bd75
commit
ec08eba2c9
2 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,7 @@
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* #define UDP_ENABLE_BROADCAST 1
|
* #define UDP_ENABLE_BROADCAST 1
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <time.h>
|
||||||
#include "util/bdrandom.h"
|
#include "util/bdrandom.h"
|
||||||
|
|
||||||
uint32_t bdRandom::index = 0 ;
|
uint32_t bdRandom::index = 0 ;
|
||||||
std::vector<uint32_t> bdRandom::MT(bdRandom::N,0u) ;
|
std::vector<uint32_t> bdRandom::MT(bdRandom::N,0u) ;
|
||||||
bdMutex bdRandom::rndMtx ;
|
bdMutex bdRandom::rndMtx ;
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__MINGW32__)
|
#if (defined(_WIN32) || defined(__MINGW32__)) && !defined(WIN_PTHREADS_H)
|
||||||
static bool auto_seed = bdRandom::seed( (time(NULL) + ((uint32_t) pthread_self().p)*0x1293fe)^0x18e34a12 ) ;
|
static bool auto_seed = bdRandom::seed( (time(NULL) + ((uint32_t) pthread_self().p)*0x1293fe)^0x18e34a12 ) ;
|
||||||
#else
|
#else
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue