From 1145085446b8fd84bc3c68157abc16703d71ff73 Mon Sep 17 00:00:00 2001 From: bjorn Date: Mon, 22 Feb 2021 17:07:28 -0700 Subject: [PATCH] macOS fixes; --- src/lib/stb/stb_vorbis.c | 2 +- src/modules/graphics/opengl.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/stb/stb_vorbis.c b/src/lib/stb/stb_vorbis.c index 9a39dfdc..b13ee3eb 100644 --- a/src/lib/stb/stb_vorbis.c +++ b/src/lib/stb/stb_vorbis.c @@ -236,7 +236,7 @@ #if defined(_MSC_VER) || defined(__MINGW32__) #include #endif - #if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) || defined(__NEWLIB__) + #if defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) || defined(__NEWLIB__) || defined(__APPLE__) #include #endif #else // STB_VORBIS_NO_CRT diff --git a/src/modules/graphics/opengl.c b/src/modules/graphics/opengl.c index 38c0cfe3..5f97c2ae 100644 --- a/src/modules/graphics/opengl.c +++ b/src/modules/graphics/opengl.c @@ -2624,9 +2624,9 @@ Shader* lovrShaderCreateGraphics(const char* vertexSource, int vertexSourceLengt #else const char* version = "#version 330\n"; const char* computeExtensions = state.features.compute ? - "#extension GL_ARB_shader_storage_buffer_object : enable \n" - "#extension GL_ARB_shader_image_load_store : enable \n" : - NULL; + "#extension GL_ARB_shader_storage_buffer_object : enable\n" + "#extension GL_ARB_shader_image_load_store : enable\n" : + ""; #endif const char* singlepass[2] = { "", "" };