Skip to content

Instantly share code, notes, and snippets.

@robn
Created May 15, 2011 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robn/973677 to your computer and use it in GitHub Desktop.
Save robn/973677 to your computer and use it in GitHub Desktop.
Patch to get Font Stash running on Linux
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