#ifdef _WIN32
#include <windows.h>
#endif
-#include <GL/gl.h>
-#include <GL/glu.h>
+#include <glcomp/opengl.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtkgl.h>
#pragma once
#include "draw.h"
-#include <GL/gl.h>
+#include <glcomp/opengl.h>
extern void pick_objects_rect(Agraph_t* g) ;
extern void deselect_all(Agraph_t* g);
#include <xdot/xdot.h>
#include <gtk/gtk.h>
-#include <GL/gl.h>
-#include <GL/glu.h>
+#include <glcomp/opengl.h>
#include <gtk/gtkgl.h>
#include <cgraph/cgraph.h>
#include <glcomp/glcompset.h>
glcomptexture.h
glpangofont.h
glutils.h
+ opengl.h
glcompbutton.c
glcompfont.c
noinst_HEADERS = glcompbutton.h glcompdefs.h glcomplabel.h \
glcomppanel.h glcompset.h glcomptexture.h \
glpangofont.h glcomptextpng.h glcompfont.h glcompmouse.h \
- glutils.h glcompimage.h
+ glutils.h glcompimage.h opengl.h
noinst_LTLIBRARIES = libglcomp_C.la
endif
<ClInclude Include="glcomptrackbar.h" />
<ClInclude Include="glpangofont.h" />
<ClInclude Include="glutils.h" />
+ <ClInclude Include="opengl.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="glcompbutton.c" />
<ClInclude Include="glutils.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="opengl.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="glcompbutton.c">
#include <winuser.h>
#include <tchar.h>
#endif
-#include <GL/gl.h>
-#include <GL/glu.h>
+#include <glcomp/opengl.h>
#ifdef __cplusplus
extern "C" {
typedef float GLfloat;
#else
#include <unistd.h>
-#include <GL/gl.h>
#endif
+#include <glcomp/opengl.h>
#include <glcomp/glcompdefs.h>
#include <GL/glut.h>
#include "windows.h"
#endif
#include <stdio.h>
-#include <GL/gl.h>
-#include <GL/glu.h>
+#include <glcomp/opengl.h>
#include <glcomp/glcompdefs.h>
#ifdef __cplusplus
#ifdef _WIN32
#include "windows.h"
#endif
-#include <GL/gl.h>
-#include <GL/glu.h>
+#include <glcomp/opengl.h>
#include <glcomp/glcompdefs.h>
#ifdef __cplusplus
--- /dev/null
+// shim to deal with OpenGL headers being at a different path on macOS
+
+#pragma once
+
+// OpenGL headers on Windows use the `WINGDIAPI` macro
+#ifdef _WIN32
+#include <windows.h>
+#endif
+
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#include <OpenGL/glu.h>
+#else
+#include <GL/gl.h>
+#include <GL/glu.h>
+#endif