remove unnecessary header includes

This commit is contained in:
IntelOrca 2014-11-30 20:26:53 +00:00
parent 30e2235b5e
commit d00001fed2
51 changed files with 17 additions and 78 deletions

View File

@ -19,7 +19,6 @@
*****************************************************************************/
#include <SDL_keycode.h>
#include <ctype.h>
#include "addresses.h"
#include "config.h"
#include "localisation/localisation.h"

View File

@ -18,12 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <assert.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <windows.h>
#include <limits.h>
#include "../addresses.h"
#include "../common.h"
#include "../localisation/localisation.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <assert.h>
#include "../addresses.h"
#include "../config.h"
#include "../drawing/drawing.h"

View File

@ -18,9 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include <memory.h>
#include <stdlib.h>
#include "../addresses.h"
#include "../drawing/drawing.h"
#include "../input.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../game.h"

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <stdio.h>
#include <string.h>
#include "../addresses.h"
#include "localisation.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../input.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <ctype.h>
#include "addresses.h"
#include "localisation/localisation.h"
#include "object.h"

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <assert.h>
#include <windows.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../audio/mixer.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <stdio.h>
#include <shlobj.h>
#include <tchar.h>
#include <SDL.h>

View File

@ -38,5 +38,6 @@ void platform_hide_cursor();
void platform_show_cursor();
void platform_get_cursor_position(int *x, int *y);
void platform_set_cursor_position(int x, int y);
unsigned int platform_get_ticks();
#endif

View File

@ -215,6 +215,11 @@ void platform_set_cursor_position(int x, int y)
SetCursorPos(x, y);
}
unsigned int platform_get_ticks()
{
return GetTickCount();
}
/**
* http://alter.org.ua/en/docs/win/args/
*/

View File

@ -21,12 +21,6 @@
#pragma warning(disable : 4996) // GetVersionExA deprecated
#include <setjmp.h>
#ifdef _MSC_VER
#include <time.h>
#endif
#include <windows.h>
#include <shlobj.h>
#include <SDL.h>
#include "addresses.h"
#include "audio/audio.h"
#include "audio/mixer.h"

View File

@ -22,12 +22,18 @@
#define _RCT2_H_
#include <assert.h>
#include <ctype.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef _MSC_VER
#include <time.h>
#endif
typedef signed char sint8;
typedef signed short sint16;
typedef signed long sint32;

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../audio/mixer.h"

View File

@ -8,7 +8,6 @@
* https://gist.github.com/kevinburke/eaeb1d8149a6eef0dcc1
*/
#include <stdbool.h>
#include "ride.h"
#include "ride_data.h"

View File

@ -21,7 +21,6 @@
#ifndef _RIDE_DATA_H_
#define _RIDE_DATA_H_
#include <stdbool.h>
#include "../common.h"
typedef struct {

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include "title.h"
#include "addresses.h"
#include "game.h"
#include "interface/viewport.h"
@ -30,8 +28,10 @@
#include "management/marketing.h"
#include "management/news_item.h"
#include "object.h"
#include "platform/platform.h"
#include "ride/ride.h"
#include "scenario.h"
#include "title.h"
#include "util/sawyercoding.h"
#include "util/util.h"
#include "world/map.h"
@ -201,8 +201,8 @@ int scenario_load_and_play_from_path(const char *path)
// Create the scenario pseduo-random seeds using the current time
uint32 srand0, srand1;
srand0 = RCT2_GLOBAL(RCT2_ADDRESS_SCENARIO_SRAND_0, uint32) ^ timeGetTime();
srand1 = RCT2_GLOBAL(RCT2_ADDRESS_SCENARIO_SRAND_1, uint32) ^ timeGetTime();
srand0 = RCT2_GLOBAL(RCT2_ADDRESS_SCENARIO_SRAND_0, uint32) ^ platform_get_ticks();
srand1 = RCT2_GLOBAL(RCT2_ADDRESS_SCENARIO_SRAND_1, uint32) ^ platform_get_ticks();
window_close_construction_windows();

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <time.h>
#include "addresses.h"
#include "audio/audio.h"
#include "config.h"

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include <string.h>
#include "../addresses.h"
#include "sawyercoding.h"

View File

@ -21,7 +21,6 @@
#ifndef _SAWYERCODING_H_
#define _SAWYERCODING_H_
#include <stdio.h>
#include "../common.h"
typedef struct {

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include <string.h>
#include "../addresses.h"
#include "../localisation/localisation.h"
#include "../sprites.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../game.h"
#include "../config.h"

View File

@ -18,9 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include <string.h>
#include <limits.h>
#include "../addresses.h"
#include "../game.h"
#include "../interface/widget.h"

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include <memory.h>
#include "../addresses.h"
#include "../input.h"
#include "../interface/widget.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <stdbool.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../config.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../game.h"

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include <string.h>
#include "../addresses.h"
#include "../localisation/date.h"
#include "../localisation/localisation.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../game.h"
#include "../input.h"

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include <assert.h>
#include "../addresses.h"
#include "../game.h"
#include "../interface/widget.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../localisation/localisation.h"
#include "../input.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../localisation/localisation.h"
#include "../input.h"

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include <string.h>
#include "../addresses.h"
#include "../localisation/localisation.h"
#include "../sprites.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../game.h"
#include "../localisation/localisation.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../game.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../management/news_item.h"

View File

@ -26,8 +26,6 @@
* Padding between the widgets and the window needs reducing, an artifact from originally being inside group boxes.
*/
#include <stdint.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../audio/mixer.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../config.h"
#include "../game.h"

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include <string.h>
#include "../addresses.h"
#include "../localisation/localisation.h"
#include "../sprites.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../game.h"
#include "../input.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../game.h"
#include "../ride/ride.h"

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include <stdbool.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../drawing/drawing.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../game.h"
#include "../config.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../game.h"
#include "../drawing/drawing.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../localisation/date.h"

View File

@ -18,8 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include <memory.h>
#include "../addresses.h"
#include "../drawing/drawing.h"
#include "../localisation/localisation.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <memory.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../editor.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../game.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "../audio/audio.h"
#include "../game.h"

View File

@ -18,7 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <windows.h>
#include "../addresses.h"
#include "../interface/window.h"
#include "../localisation/localisation.h"

View File

@ -18,10 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include <string.h>
#include "../addresses.h"
#include "sprite.h"
#include "../interface/viewport.h"
#include "sprite.h"
rct_sprite* g_sprite_list = RCT2_ADDRESS(RCT2_ADDRESS_SPRITE_LIST, rct_sprite);