1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 02:22:39 +00:00

Fix Windows MSYS2 build (mostly)

This commit is contained in:
Melissa Goad
2020-05-27 18:09:56 -05:00
parent 0f2f776e6a
commit 603b747ac5
4 changed files with 10 additions and 1 deletions
+1
View File
@@ -23,6 +23,7 @@
#else
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#include <GL/glext.h>
#endif
#ifndef NDEBUG
@@ -10,6 +10,10 @@
#include <cmath>
#ifndef M_PI
#define M_PI 3.1415926f
#endif
using namespace Outputs::Display::OpenGL;
// MARK: - State setup for compiled shaders.
+4
View File
@@ -9,6 +9,10 @@
#include "FIRFilter.hpp"
#include <cmath>
#ifndef M_PI
#define M_PI 3.1415926f
#endif
using namespace SignalProcessing;
/*
+1 -1
View File
@@ -279,7 +279,7 @@ struct Executor {
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.
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) {
*end = ' ';
++end;