remove timeval and unistd.h

This commit is contained in:
Brad Hefta-Gaub 2014-01-10 17:27:23 -08:00
parent e18ae78ce1
commit f6d775e3e1
3 changed files with 60 additions and 53 deletions

View file

@ -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>

View file

@ -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;

View file

@ -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_