Skip to content
Snippets Groups Projects
Commit a164db7a authored by Martin Kaltenbrunner's avatar Martin Kaltenbrunner
Browse files

fix defines

parent 2e0d6767
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
#ifndef ONEEUROFILTER
#define ONEEUROFILTER
#define _USE_MATH_DEFINES
#include <stdexcept>
#include <cmath>
......
......@@ -26,10 +26,6 @@ int tcp_connect(int socket, const struct sockaddr *address, socklen_t address_le
return connect(socket, address, address_len);
}
#if defined (WIN32) && !defined (int32_t)
typedef DWORD int32_t;
#endif
#ifdef WIN32
static DWORD WINAPI ClientThreadFunc( LPVOID obj )
#else
......
......@@ -35,6 +35,10 @@ typedef int socklen_t;
#include <unistd.h>
#endif
#if defined (WIN32) && !defined (_STDINT)
typedef DWORD int32_t;
#endif
namespace TUIO {
/**
......
......@@ -37,13 +37,17 @@ typedef int socklen_t;
#include <list>
#define MAX_TCP_SIZE 65536
#if defined (WIN32) && !defined (_STDINT)
typedef DWORD int32_t;
#endif
namespace TUIO {
/**
* The TcpSender implements the TCP transport method for OSC
*
* @author Martin Kaltenbrunner
* @version 2.0.a0
* @version 1.1.6
*/
class LIBDECL TcpSender : public OscSender {
......
......@@ -19,14 +19,11 @@
#ifndef INCLUDED_TUIOPOINT_H
#define INCLUDED_TUIOPOINT_H
#define _USE_MATH_DEFINES
#include "TuioTime.h"
#include "OneEuroFilter.h"
#include <cmath>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
namespace TUIO {
/**
......
......@@ -19,10 +19,6 @@
#include "WebSockSender.h"
#if defined (WIN32) && !defined (_STDINT)
typedef DWORD int32_t;
#endif
using namespace TUIO;
WebSockSender::WebSockSender()
......
......@@ -73,7 +73,7 @@ namespace TUIO {
* The WebSockSender implements the WebSocket transport method for OSC
*
* @author Florian Echtler
* @version 2.0.a0
* @version 1.1.6
*/
class LIBDECL WebSockSender : public TcpSender {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment