mirror of
https://gitlab.com/then-try-this/samplebrain.git
synced 2025-05-12 10:37:20 +00:00
more windows fixes
This commit is contained in:
parent
cd6b842026
commit
1b73a28f5b
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user