Created
May 15, 2011 23:30
-
-
Save robn/973677 to your computer and use it in GitHub Desktop.
Patch to get Font Stash running on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -U3 -r fontstash/fontstash.c fontstash-linux/fontstash.c | |
--- fontstash/fontstash.c 2009-08-27 22:03:44.000000000 +1000 | |
+++ fontstash-linux/fontstash.c 2011-05-16 09:26:23.000000000 +1000 | |
@@ -20,7 +20,7 @@ | |
#include <stdlib.h> | |
#include <string.h> | |
-#include <OpenGL/gl.h> | |
+#include <GL/gl.h> | |
#define STB_TRUETYPE_IMPLEMENTATION | |
#define STBTT_malloc(x,u) malloc(x) | |
diff -U3 -r fontstash/main.c fontstash-linux/main.c | |
--- fontstash/main.c 2009-08-27 22:08:20.000000000 +1000 | |
+++ fontstash-linux/main.c 2011-05-16 09:26:48.000000000 +1000 | |
@@ -21,7 +21,7 @@ | |
#include <string.h> | |
#include <math.h> | |
#include "SDL.h" | |
-#include "SDL_Opengl.h" | |
+#include "SDL_opengl.h" | |
#include "fontstash.h" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment