diff --git a/checkin_notes b/checkin_notes index f02cf0ad47..3605cf40cc 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1991,3 +1991,11 @@ Rom 24 Feb 2009 clientscr/ screensaver_win.cpp + +Rom 25 Feb 2009 + - WINSCR: Remove unneeded header files + - SCR: Shuffle headers around so that it'll build on both Windows and + Mac without having to put in duplicate entries. + + clientscr/ + screensaver.cpp diff --git a/clientscr/screensaver.cpp b/clientscr/screensaver.cpp index 46e0211a06..80b7e88643 100644 --- a/clientscr/screensaver.cpp +++ b/clientscr/screensaver.cpp @@ -15,30 +15,41 @@ // You should have received a copy of the GNU Lesser General Public License // along with BOINC. If not, see . + +// System Includes +// #ifdef _WIN32 #include "boinc_win.h" - #include -#include -#include -#include - -#include "boinc_ss.h" - #endif +#ifdef __APPLE__ +#include +#include +#endif + +// Common application includes +// #include "diagnostics.h" #include "common_defs.h" #include "util.h" #include "common_defs.h" #include "filesys.h" #include "error_numbers.h" +#include "gui_rpc_client.h" +#include "str_util.h" +#include "screensaver.h" + +// Platform specific application includes +// +#if defined(_WIN32) +#include "screensaver_win.h" +#elif defined(__APPLE__) +#include "Mac_Saver_Module.h" +#endif #ifdef _WIN32 -#include "gui_rpc_client.h" -#include "screensaver_win.h" -#include "str_util.h" // Allow for Unicode wide characters #define PATH_SEPARATOR (_T("\\")) #define THE_DEFAULT_SS_EXECUTABLE (_T(DEFAULT_SS_EXECUTABLE)) @@ -52,13 +63,6 @@ #define DEFAULT_GFX_CANT_CONNECT (ERR_CONNECT & 0xff) #endif -#ifdef __APPLE__ -#include -#include -#include "gui_rpc_client.h" // The order of included headers is critical here. Do not move this! -#include "Mac_Saver_Module.h" -#endif -#include "screensaver.h" // Flags for testing & debugging #define SIMULATE_NO_GRAPHICS 0