mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 11:50:39 +02:00
remove timeval and unistd.h
This commit is contained in:
parent
e18ae78ce1
commit
f6d775e3e1
3 changed files with 60 additions and 53 deletions
|
@ -12,7 +12,8 @@
|
|||
#include <netinet/in.h>
|
||||
#include <stdint.h>
|
||||
#include <iterator>
|
||||
#include <unistd.h>
|
||||
|
||||
//#include <unistd.h> // not on windows, not needed for mac or windows
|
||||
|
||||
#include <QtNetwork/QHostAddress>
|
||||
#include <QtNetwork/QUdpSocket>
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
|
||||
#include <math.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#include <unistd.h> // not on windows, not needed for mac or windows
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm/gtc/quaternion.hpp>
|
||||
|
@ -46,8 +47,8 @@ static const float PIE = 3.141592f;
|
|||
static const float PI_TIMES_TWO = 3.141592f * 2.0f;
|
||||
static const float PI_OVER_180 = 3.141592f / 180.0f;
|
||||
static const float EPSILON = 0.000001f; //smallish positive number - used as margin of error for some computations
|
||||
static const float SQUARE_ROOT_OF_2 = (float)sqrt(2);
|
||||
static const float SQUARE_ROOT_OF_3 = (float)sqrt(3);
|
||||
static const float SQUARE_ROOT_OF_2 = (float)sqrt(2.f);
|
||||
static const float SQUARE_ROOT_OF_3 = (float)sqrt(3.f);
|
||||
static const float METER = 1.0f;
|
||||
static const float DECIMETER = 0.1f;
|
||||
static const float CENTIMETER = 0.01f;
|
||||
|
|
|
@ -2,19 +2,24 @@
|
|||
#define __Systime__
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#ifdef _WINSOCK2API_
|
||||
#define _timeval_
|
||||
#endif
|
||||
|
||||
#ifndef _timeval_
|
||||
#define _timeval_
|
||||
/*
|
||||
* Structure returned by gettimeofday(2) system call,
|
||||
* and used in other calls.
|
||||
*/
|
||||
|
||||
#if 0 // not needed for VC2010
|
||||
struct timeval {
|
||||
long tv_sec; /* seconds */
|
||||
long tv_usec; /* and microseconds */
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif _timeval_
|
||||
|
||||
|
|
Loading…
Reference in a new issue