Skip to content

Commit fad06d1

Browse files
committed
remove DFSDL.h dependency from Graphic.h
this significantly reduces the number of compilation units that depend on DFSDL.h
1 parent 3a1cc55 commit fad06d1

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

library/LuaApi.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ distribution.
4343
#include "modules/Burrows.h"
4444
#include "modules/Constructions.h"
4545
#include "modules/Designations.h"
46+
#include "modules/DFSDL.h"
4647
#include "modules/EventManager.h"
4748
#include "modules/Filesystem.h"
4849
#include "modules/Gui.h"

library/include/modules/Graphic.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ distribution.
3333
#include <stdint.h>
3434
#include "Export.h"
3535
#include "Module.h"
36-
#include "DFSDL.h"
3736
#include <vector>
3837

3938
namespace DFHack
4039
{
40+
// forward declaration used here instead of including DFSDL.h to reduce inclusion loading
41+
struct DFTileSurface;
42+
4143
class DFHACK_EXPORT Graphic : public Module
4244
{
4345
public:

0 commit comments

Comments
 (0)