Code

compile depending on WITH_LIBWPG
authortheAdib <theAdib@users.sourceforge.net>
Fri, 21 Dec 2007 19:51:49 +0000 (19:51 +0000)
committertheAdib <theAdib@users.sourceforge.net>
Fri, 21 Dec 2007 19:51:49 +0000 (19:51 +0000)
src/extension/internal/wpg-input.cpp
src/extension/internal/wpg-input.h

index c385a9f14070f28eeb5a5cbcff659b294a703c81..a8c0df4d2a09090c41a2e95b2ae68bcba6204838 100644 (file)
@@ -40,6 +40,8 @@
 
 #include <stdio.h>
 
+#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:
index 0be4c8d2329af3d8abc28229010f55b06a714e79..81c090eaa81f7d11e57966bd10af25967db41369 100644 (file)
@@ -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++