Skip to content

Commit

Permalink
Merge pull request #127 from myk002/myk_header_cleanup
Browse files Browse the repository at this point in the history
clean up headers
  • Loading branch information
myk002 authored Jan 12, 2025
2 parents 8f40e92 + ad25224 commit 79fa22c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions Constructions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#include "Constructions.h"
#include "WorldSegment.h"

#include "df/construction.h"

using namespace DFHack;
using namespace df::enums;

Expand Down
2 changes: 2 additions & 0 deletions Constructions.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#pragma once

#include "df/construction.h"

void changeConstructionMaterials(WorldSegment* segment, std::vector<df::construction>* allConstructions);
bool readConstructionsToTile( Tile* b, const DFHack::Buildings::t_building* building );
12 changes: 5 additions & 7 deletions common.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
#define SKIP_DFHACK_STDINT
#define DFHACK_WANT_PLATETYPES

#include <DFHack.h>
#include <Console.h>
#include <Export.h>
#include <PluginManager.h>

#include <modules/Buildings.h>
#include <modules/Gui.h>
#include <modules/Units.h>
#include <modules/World.h>

#define ALLEGRO_NO_MAGIC_MAIN //This is a DLL file. we got no main function.
#define ALLEGRO_HAVE_STDINT_H

Expand All @@ -26,10 +28,6 @@
#include <allegro5/allegro_opengl.h>
#include <allegro5/utf8.h>

#ifdef _LINUX
#include <GL/glext.h>
#endif

// allegro leaks X headers, undef some of it here:
#undef TileShape
#undef None
Expand Down

0 comments on commit 79fa22c

Please sign in to comment.