From 66e6dfc3f9699cc0c6ef8d68b1df4605e0de619a Mon Sep 17 00:00:00 2001 From: atmaxinger Date: Tue, 27 May 2014 19:22:06 +0200 Subject: [PATCH] clean up header files, keep windows.h for MAX_PATH --- src/config.c | 8 +++----- src/config.h | 2 +- src/screenshot.c | 2 ++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/config.c b/src/config.c index c17625f328..ad58991810 100644 --- a/src/config.c +++ b/src/config.c @@ -19,14 +19,12 @@ *****************************************************************************/ #include -#include -#include -#include #include +#include #include "addresses.h" #include "config.h" #include "rct2.h" -#include + #include "osinterface.h" @@ -201,7 +199,7 @@ void config_save() fp = fopen(get_file_path(PATH_ID_GAMECFG), "wb"); if (fp != NULL){ fwrite(&MagicNumber, 4, 1, fp); - fwrite((LPCVOID)0x009AAC5C, 2155, 1, fp); + fwrite((void*)0x009AAC5C, 2155, 1, fp); fclose(fp); } } diff --git a/src/config.h b/src/config.h index ef04a12386..c1139c0a96 100644 --- a/src/config.h +++ b/src/config.h @@ -21,8 +21,8 @@ #ifndef _CONFIG_H_ #define _CONFIG_H_ -#include #include "rct2.h" +#include // for MAX_PATH enum { CONFIG_FLAG_ALWAYS_SHOW_GRIDLINES = (1 << 0), diff --git a/src/screenshot.c b/src/screenshot.c index 10350f39da..cc8d3d84bc 100644 --- a/src/screenshot.c +++ b/src/screenshot.c @@ -30,6 +30,8 @@ #include "string_ids.h" #include "window_error.h" +#include // For MAX_PATH + static int screenshot_dump_bmp(); static int screenshot_dump_png();