From: theAdib Date: Fri, 21 Dec 2007 19:51:49 +0000 (+0000) Subject: compile depending on WITH_LIBWPG X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dc9e07d7ab84affb6b7d7d47f5a9d3247dc58089;p=inkscape.git compile depending on WITH_LIBWPG --- diff --git a/src/extension/internal/wpg-input.cpp b/src/extension/internal/wpg-input.cpp index c385a9f14..a8c0df4d2 100644 --- a/src/extension/internal/wpg-input.cpp +++ b/src/extension/internal/wpg-input.cpp @@ -40,6 +40,8 @@ #include +#ifdef WITH_LIBWPG + #include "wpg-input.h" #include "extension/system.h" #include "extension/input.h" @@ -48,6 +50,7 @@ #include "libwpg/libwpg.h" #include "libwpg/WPGStreamImplementation.h" + using namespace libwpg; namespace Inkscape { @@ -107,6 +110,7 @@ WpgInput::init(void) { } // init } } } /* namespace Inkscape, Extension, Implementation */ +#endif /* WITH_LIBWPG */ /* Local Variables: diff --git a/src/extension/internal/wpg-input.h b/src/extension/internal/wpg-input.h index 0be4c8d23..81c090eaa 100644 --- a/src/extension/internal/wpg-input.h +++ b/src/extension/internal/wpg-input.h @@ -13,6 +13,8 @@ #ifndef __EXTENSION_INTERNAL_WPGOUTPUT_H__ #define __EXTENSION_INTERNAL_WPGOUTPUT_H__ +#ifndef WITH_LIBWPG + #include "../implementation/implementation.h" namespace Inkscape { @@ -29,8 +31,11 @@ public: }; } } } /* namespace Inkscape, Extension, Implementation */ + +#endif /* WITH_LIBWPG */ #endif /* __EXTENSION_INTERNAL_WPGOUTPUT_H__ */ + /* Local Variables: mode:c++