mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-27 18:55:48 +00:00
Fix Windows MSYS2 build (mostly)
This commit is contained in:
parent
0f2f776e6a
commit
603b747ac5
@ -23,6 +23,7 @@
|
|||||||
#else
|
#else
|
||||||
#define GL_GLEXT_PROTOTYPES
|
#define GL_GLEXT_PROTOTYPES
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
|
#include <GL/glext.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
#ifndef M_PI
|
||||||
|
#define M_PI 3.1415926f
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace Outputs::Display::OpenGL;
|
using namespace Outputs::Display::OpenGL;
|
||||||
|
|
||||||
// MARK: - State setup for compiled shaders.
|
// MARK: - State setup for compiled shaders.
|
||||||
|
@ -9,6 +9,10 @@
|
|||||||
#include "FIRFilter.hpp"
|
#include "FIRFilter.hpp"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
#ifndef M_PI
|
||||||
|
#define M_PI 3.1415926f
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace SignalProcessing;
|
using namespace SignalProcessing;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -279,7 +279,7 @@ struct Executor {
|
|||||||
|
|
||||||
auto copy_string = [] (uint8_t *destination, const char *source, size_t length) -> void {
|
auto copy_string = [] (uint8_t *destination, const char *source, size_t length) -> void {
|
||||||
// Copy as much of the string as will fit, and pad with spaces.
|
// Copy as much of the string as will fit, and pad with spaces.
|
||||||
uint8_t *end = reinterpret_cast<uint8_t *>(stpncpy(reinterpret_cast<char *>(destination), source, length));
|
uint8_t *end = reinterpret_cast<uint8_t *>(strncpy(reinterpret_cast<char *>(destination), source, length));
|
||||||
while(end < destination + length) {
|
while(end < destination + length) {
|
||||||
*end = ' ';
|
*end = ' ';
|
||||||
++end;
|
++end;
|
||||||
|
Loading…
Reference in New Issue
Block a user