fix unmatched #ifdef in Syssocket

This commit is contained in:
Stephen Birarda 2014-04-10 09:54:37 -07:00
parent 58298984d3
commit ba6f861ad8
2 changed files with 3 additions and 5 deletions

View file

@ -4,9 +4,6 @@
#ifdef _WIN32
#define WINSOCK_API_LINKAGE
#include <winsock2.h>
#ifndef _timeval_
#define _timeval_
#endif
typedef SSIZE_T ssize_t;
typedef ULONG32 in_addr_t;
typedef USHORT in_port_t;

View file

@ -15,10 +15,11 @@
#include <cctype>
#include <time.h>
#ifdef WIN32
#ifdef _WIN32
#ifndef _timeval_
#define _timeval_
#endif
#endif
#ifdef __APPLE__
#include <CoreFoundation/CoreFoundation.h>
@ -44,7 +45,7 @@ quint64 usecTimestampNow() {
return (now.tv_sec * 1000000 + now.tv_usec) + ::usecTimestampNowAdjust;
}
float randFloat () {
float randFloat() {
return (rand() % 10000)/10000.f;
}