diff options
Diffstat (limited to 'server/src/macrotool/export.cc')
-rw-r--r-- | server/src/macrotool/export.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/src/macrotool/export.cc b/server/src/macrotool/export.cc index 2c3eb05..f42cd34 100644 --- a/server/src/macrotool/export.cc +++ b/server/src/macrotool/export.cc @@ -27,11 +27,15 @@ */ #include "export.h" +#include <config.h> #include <stdio.h> +#include "debug.h" + +#ifndef WITHOUT_DB + #include <stdlib.h> #include <pqxx/pqxx> -#include "debug.h" #include "fieldnamescanner.h" #include "configuration.h" @@ -254,6 +258,8 @@ static void export_prefix(std::string prefix) } } +#endif/* WITHOUT_DB */ + static const char usage_str[] = " help Prints this helptext.\n" " prefix p Export all templates matching the prefix p.\n" @@ -274,7 +280,9 @@ void macrotool_export(std::vector<std::string> params) printf("%s", usage_str); return; } +#ifndef WITHOUT_DB export_prefix(params[1]); +#endif/* WITHOUT_DB */ return; } |