diff --git a/src/window/backend/SDL/ccursormanagersdl.cpp b/src/window/backend/SDL/ccursormanagersdl.cpp index 71113863e..82918cd0d 100644 --- a/src/window/backend/SDL/ccursormanagersdl.cpp +++ b/src/window/backend/SDL/ccursormanagersdl.cpp @@ -1,6 +1,8 @@ #include "ccursormanagersdl.hpp" #include "ccursorsdl.hpp" +#ifdef EE_BACKEND_SDL_ACTIVE + namespace EE { namespace Window { namespace Backend { namespace SDL { cCursorManagerSDL::cCursorManagerSDL( cWindow * window ) : @@ -53,3 +55,5 @@ void cCursorManagerSDL::Reload() { } }}}} + +#endif diff --git a/src/window/backend/SDL/ccursormanagersdl.hpp b/src/window/backend/SDL/ccursormanagersdl.hpp index 77521f414..cad40af81 100644 --- a/src/window/backend/SDL/ccursormanagersdl.hpp +++ b/src/window/backend/SDL/ccursormanagersdl.hpp @@ -2,6 +2,9 @@ #define EE_WINDOWCCURSORMANAGERSDL_HPP #include "../../ccursormanager.hpp" + +#ifdef EE_BACKEND_SDL_ACTIVE + #include using namespace EE::Window; @@ -34,3 +37,5 @@ class cCursorManagerSDL : public cCursorManager { }}}} #endif + +#endif diff --git a/src/window/backend/SDL/ccursorsdl.cpp b/src/window/backend/SDL/ccursorsdl.cpp index 82762bc89..2f5ed8a94 100644 --- a/src/window/backend/SDL/ccursorsdl.cpp +++ b/src/window/backend/SDL/ccursorsdl.cpp @@ -1,5 +1,7 @@ #include "ccursorsdl.hpp" +#ifdef EE_BACKEND_SDL_ACTIVE + namespace EE { namespace Window { namespace Backend { namespace SDL { cCursorSDL::cCursorSDL( cTexture * tex, const eeVector2i& hotspot, const std::string& name, cWindow * window ) : @@ -21,3 +23,5 @@ void cCursorSDL::Create() { } }}}} + +#endif diff --git a/src/window/backend/SDL/ccursorsdl.hpp b/src/window/backend/SDL/ccursorsdl.hpp index e20235723..c40c49b1b 100644 --- a/src/window/backend/SDL/ccursorsdl.hpp +++ b/src/window/backend/SDL/ccursorsdl.hpp @@ -3,6 +3,8 @@ #include "../../ccursor.hpp" +#ifdef EE_BACKEND_SDL_ACTIVE + using namespace EE::Window; namespace EE { namespace Window { namespace Backend { namespace SDL { @@ -23,3 +25,5 @@ class cCursorSDL : public cCursor { }}}} #endif + +#endif diff --git a/src/window/backend/allegro5/ccursoral.cpp b/src/window/backend/allegro5/ccursoral.cpp index e2b89d257..6e5ffe138 100644 --- a/src/window/backend/allegro5/ccursoral.cpp +++ b/src/window/backend/allegro5/ccursoral.cpp @@ -1,6 +1,8 @@ #include "ccursoral.hpp" #include "cwindowal.hpp" +#ifdef EE_BACKEND_ALLEGRO_ACTIVE + namespace EE { namespace Window { namespace Backend { namespace Al { cCursorAl::cCursorAl( cTexture * tex, const eeVector2i& hotspot, const std::string& name, cWindow * window ) : @@ -77,3 +79,5 @@ void cCursorAl::Create() { } }}}} + +#endif diff --git a/src/window/backend/allegro5/ccursoral.hpp b/src/window/backend/allegro5/ccursoral.hpp index 61e6a4cae..d4eb3c28e 100644 --- a/src/window/backend/allegro5/ccursoral.hpp +++ b/src/window/backend/allegro5/ccursoral.hpp @@ -2,6 +2,9 @@ #define EE_WINDOWCCURSORAL_HPP #include "../../ccursor.hpp" + +#ifdef EE_BACKEND_ALLEGRO_ACTIVE + #include using namespace EE::Window; @@ -30,3 +33,5 @@ class cCursorAl : public cCursor { }}}} #endif + +#endif diff --git a/src/window/backend/allegro5/ccursormanageral.cpp b/src/window/backend/allegro5/ccursormanageral.cpp index 133600ae5..07000e20d 100644 --- a/src/window/backend/allegro5/ccursormanageral.cpp +++ b/src/window/backend/allegro5/ccursormanageral.cpp @@ -2,6 +2,8 @@ #include "ccursoral.hpp" #include "cwindowal.hpp" +#ifdef EE_BACKEND_ALLEGRO_ACTIVE + namespace EE { namespace Window { namespace Backend { namespace Al { cCursorManagerAl::cCursorManagerAl( cWindow * window ) : @@ -71,3 +73,5 @@ void cCursorManagerAl::Reload() { } }}}} + +#endif diff --git a/src/window/backend/allegro5/ccursormanageral.hpp b/src/window/backend/allegro5/ccursormanageral.hpp index e208ffc2b..c23c98a64 100644 --- a/src/window/backend/allegro5/ccursormanageral.hpp +++ b/src/window/backend/allegro5/ccursormanageral.hpp @@ -3,6 +3,8 @@ #include "../../ccursormanager.hpp" +#ifdef EE_BACKEND_ALLEGRO_ACTIVE + using namespace EE::Window; namespace EE { namespace Window { namespace Backend { namespace Al { @@ -33,3 +35,5 @@ class cCursorManagerAl : public cCursorManager { }}}} #endif + +#endif