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 "status.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
using namespace spiralcore;
|
||||
using namespace std;
|
||||
|
||||
@ -136,7 +140,11 @@ void process_thread::process() {
|
||||
save_session(cmd.get_string(0));
|
||||
}
|
||||
}
|
||||
#ifdef WIN32
|
||||
Sleep(1);
|
||||
#else
|
||||
usleep(500);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "brain.h"
|
||||
#include "renderer.h"
|
||||
#include "block_stream.h"
|
||||
#define HAVE_STRUCT_TIMESPEC
|
||||
#include <pthread.h>
|
||||
|
||||
#pragma once
|
||||
|
@ -20,6 +20,10 @@
|
||||
#include <cmath>
|
||||
#include <iterator>
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.141592653589
|
||||
#endif
|
||||
|
||||
namespace Aquila
|
||||
{
|
||||
/**
|
||||
|
@ -21,6 +21,10 @@
|
||||
using namespace std;
|
||||
using namespace spiralcore;
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.141592653589
|
||||
#endif
|
||||
|
||||
window::window() :
|
||||
m_current_type(RECTANGLE)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user