From 1285c967cd529e0197bfccb9948c2ec36adf05eb Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 4 Jun 2013 17:07:26 +0000
Subject: [PATCH] hack for mingw

---
 Fltk/drawContextFltkCairo.cpp         | 5 +++++
 Fltk/drawContextFltkStringTexture.cpp | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/Fltk/drawContextFltkCairo.cpp b/Fltk/drawContextFltkCairo.cpp
index 177356fe7a..858693d982 100644
--- a/Fltk/drawContextFltkCairo.cpp
+++ b/Fltk/drawContextFltkCairo.cpp
@@ -10,6 +10,11 @@
 #if defined(HAVE_CAIRO)
 #include <cairo/cairo.h>
 
+// FIXME: hack for current version of mingw
+#if defined(WIN32) && !defined(GL_TEXTURE_RECTANGLE_EXT)
+#define GL_TEXTURE_RECTANGLE_EXT 0x84F5
+#endif
+
 class drawContextFltkCairo::queueString {
   public :
   typedef struct {
diff --git a/Fltk/drawContextFltkStringTexture.cpp b/Fltk/drawContextFltkStringTexture.cpp
index 632d5c605f..6586fd170d 100644
--- a/Fltk/drawContextFltkStringTexture.cpp
+++ b/Fltk/drawContextFltkStringTexture.cpp
@@ -7,6 +7,11 @@
 
 #include "drawContextFltkStringTexture.h"
 
+// FIXME: hack for current version of mingw
+#if defined(WIN32) && !defined(GL_TEXTURE_RECTANGLE_EXT)
+#define GL_TEXTURE_RECTANGLE_EXT 0x84F5
+#endif
+
 class drawContextFltkStringTexture::queueString {
   public :
   typedef struct {
-- 
GitLab