From bf8ac1f00d821eb5312e4a3b4c1bc363af4a9793 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Tue, 1 Oct 2019 19:56:53 +0200 Subject: [PATCH] [GTK3] Make GCC happier --- gtk3/main.c | 4 ++-- gtk3/shader.c | 2 -- gtk3/shader.h | 3 +++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gtk3/main.c b/gtk3/main.c index 576a363..d8b2209 100644 --- a/gtk3/main.c +++ b/gtk3/main.c @@ -30,10 +30,10 @@ static Rect rect; static bool vram_viewer_visible = false; static bool running = true; -static const size_t tileset_buffer_length = 256 * 192 * 4; +#define tileset_buffer_length 256 * 192 * 4 static uint32_t tileset_buffer[tileset_buffer_length] = {0}; -static const size_t tilemap_buffer_length = 256 * 256 * 4; +#define tilemap_buffer_length 256 * 256 * 4 static uint32_t tilemap_buffer[tilemap_buffer_length] = {0}; static uint8_t pressed_buttons; diff --git a/gtk3/shader.c b/gtk3/shader.c index a247c4b..aca7624 100644 --- a/gtk3/shader.c +++ b/gtk3/shader.c @@ -1,5 +1,3 @@ -#include -#include #include "shader.h" static const char *vertex_shader = "\n\ diff --git a/gtk3/shader.h b/gtk3/shader.h index d276f73..6923738 100644 --- a/gtk3/shader.h +++ b/gtk3/shader.h @@ -2,6 +2,9 @@ #define shader_h #include #include +#include +#include +#include typedef struct shader_s { GLuint resolution_uniform;