diff --git a/api/boinc_api.C b/api/boinc_api.C index 34ffc10b71..bb2fd1adb3 100644 --- a/api/boinc_api.C +++ b/api/boinc_api.C @@ -46,6 +46,18 @@ HANDLE hGlobalDrawEvent; #include #include +#ifdef BOINC_APP_GRAPHICS +#ifdef __APPLE_CC__ + #include +#endif + +#ifdef _WIN32 +#include // Header File For The OpenGL32 Library +#include // Header File For The GLu32 Library +#include // Header File For The Glaux Library +#endif +#endif + #include "parse.h" #include "error_numbers.h" #include "graphics_api.h" @@ -304,6 +316,7 @@ double boinc_cpu_time() { HANDLE hProcess; FILETIME creationTime,exitTime,kernelTime,userTime; + // TODO: Could we speed this up by retaining the process handle? hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, 0, GetCurrentProcessId()); if (GetProcessTimes( hProcess, &creationTime, &exitTime, &kernelTime, &userTime)