mirror of
https://github.com/overte-org/overte.git
synced 2025-04-12 03:45:08 +02:00
fix unmatched #ifdef in Syssocket
This commit is contained in:
parent
58298984d3
commit
ba6f861ad8
2 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue