diff --git a/ogre/src/OgreRenderEngine.cc b/ogre/src/OgreRenderEngine.cc index 7352e747a..5eb9e3967 100644 --- a/ogre/src/OgreRenderEngine.cc +++ b/ogre/src/OgreRenderEngine.cc @@ -19,6 +19,16 @@ #if !defined(__APPLE__) && !defined(_WIN32) # include # include + +#if !defined(kronos_intptr_t) || !defined(khronos_intptr_t) +// Conda-forge's glext.h is old and has a bug. +// This is a minimally-intrusive fix to correct types. +// On modern GL distributions, glx.h will override these. +# include +typedef khronos_ssize_t GLsizeiptr; +typedef khronos_intptr_t GLintptr; +#endif + # include #endif