more windows fixes

This commit is contained in:
dave griffiths 2016-09-24 10:41:10 +01:00
parent cd6b842026
commit 1b73a28f5b
4 changed files with 17 additions and 0 deletions

View File

@ -19,6 +19,10 @@
#include <unistd.h> #include <unistd.h>
#include "status.h" #include "status.h"
#ifdef WIN32
#include <windows.h>
#endif
using namespace spiralcore; using namespace spiralcore;
using namespace std; using namespace std;
@ -136,7 +140,11 @@ void process_thread::process() {
save_session(cmd.get_string(0)); save_session(cmd.get_string(0));
} }
} }
#ifdef WIN32
Sleep(1);
#else
usleep(500); usleep(500);
#endif
} }
} }

View File

@ -18,6 +18,7 @@
#include "brain.h" #include "brain.h"
#include "renderer.h" #include "renderer.h"
#include "block_stream.h" #include "block_stream.h"
#define HAVE_STRUCT_TIMESPEC
#include <pthread.h> #include <pthread.h>
#pragma once #pragma once

View File

@ -20,6 +20,10 @@
#include <cmath> #include <cmath>
#include <iterator> #include <iterator>
#ifndef M_PI
#define M_PI 3.141592653589
#endif
namespace Aquila namespace Aquila
{ {
/** /**

View File

@ -21,6 +21,10 @@
using namespace std; using namespace std;
using namespace spiralcore; using namespace spiralcore;
#ifndef M_PI
#define M_PI 3.141592653589
#endif
window::window() : window::window() :
m_current_type(RECTANGLE) m_current_type(RECTANGLE)
{ {