From bb5862d6fe6e2c46de6b46d411b2882246f95fe1 Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Fri, 16 Dec 2005 03:33:36 +0000 Subject: [PATCH] Added explicit inclusions of boinc_win.h svn path=/trunk/boinc/; revision=9076 --- api/boinc_gl.h | 8 ++++++-- api/graphics_impl_lib.C | 4 ++++ api/graphics_lib.C | 4 ++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/api/boinc_gl.h b/api/boinc_gl.h index 52987bc7ba..9f342f5980 100644 --- a/api/boinc_gl.h +++ b/api/boinc_gl.h @@ -24,12 +24,16 @@ #if defined(_WIN32) # include # include -#ifndef __MINGW32__ +#if !defined(__MINGW32__) && !defined(__CYGWIN32__) # include #else # include #endif -# include +#if defined(HAVE_GL_GLUT_H) +# include +#else +# include +#endif #elif defined(__APPLE_CC__) diff --git a/api/graphics_impl_lib.C b/api/graphics_impl_lib.C index b5f047d51e..f48d58eb02 100644 --- a/api/graphics_impl_lib.C +++ b/api/graphics_impl_lib.C @@ -20,6 +20,10 @@ // Code that is included in the shared-library part of a graphics app, // but NOT in libboinc_graphics_api.a (used by monolithic apps) +#ifdef _WIN32 +#include "boinc_win.h" +#endif + #include "config.h" #include "app_ipc.h" #include "graphics_impl.h" diff --git a/api/graphics_lib.C b/api/graphics_lib.C index d02b7cb857..6748bafc8a 100644 --- a/api/graphics_lib.C +++ b/api/graphics_lib.C @@ -22,6 +22,10 @@ // This lets you make applications that work whether or not // the host has X11 and OpenGL libraries. +#ifdef _WIN32 +#include "boinc_win.h" +#endif + #include "config.h" #include