diff options
Diffstat (limited to 'slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl.hxx')
-rw-r--r-- | slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl.hxx b/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl.hxx index 9b27b47dc8d7..f2c691106403 100644 --- a/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl.hxx +++ b/slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl.hxx @@ -35,6 +35,14 @@ #include <basegfx/vector/b3dvector.hxx> #include <vector> + +#ifdef _WIN32 +// <GL/gl.h> includes <windows.h>, so include that early through +// <prewin.h> to avoid name clashes from at least GDI's Rectangle(). +#include <prewin.h> +#include <postwin.h> +#endif + #include <GL/gl.h> class Primitive; |