diff options
| author | Dmitry Zhulanov <dmitry.zhulanov@gmail.com> | 2016-10-01 10:08:49 +0000 |
|---|---|---|
| committer | Dmitry Zhulanov <dmitry.zhulanov@gmail.com> | 2016-10-01 10:08:49 +0000 |
| commit | 017616c4fc99883323c2a0d6e44b88f7cd16ce2d (patch) | |
| tree | 6a1ab72d73b5db369763a1baef6e341ba32e249c /src/main-cmdlinexact.cpp | |
| parent | fix indent (diff) | |
| download | inkscape-017616c4fc99883323c2a0d6e44b88f7cd16ce2d.tar.gz inkscape-017616c4fc99883323c2a0d6e44b88f7cd16ce2d.zip | |
fix cmake warning and remove whole xverbs code from compilation without yaml
(bzr r15136.1.11)
Diffstat (limited to 'src/main-cmdlinexact.cpp')
| -rw-r--r-- | src/main-cmdlinexact.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main-cmdlinexact.cpp b/src/main-cmdlinexact.cpp index f29d22377..f5db522ae 100644 --- a/src/main-cmdlinexact.cpp +++ b/src/main-cmdlinexact.cpp @@ -38,7 +38,7 @@ * # inkscape have a lot of useful verbs * - verb-id: FileQuit */ - +#ifdef WITH_YAML #include <ui/view/view.h> #include <desktop.h> #include <helper/action.h> @@ -52,9 +52,8 @@ #include <glibmm/i18n.h> #include "main-cmdlinexact.h" -#ifdef WITH_YAML + #include "yaml.h" -#endif // WITH_YAML #include "extension/system.h" #include "file.h" @@ -315,9 +314,6 @@ typedef std::list<verb_info_t> verbs_list_t; void CmdLineXAction::createActionsFromYAML( gchar const *yaml_filename ) { -#ifndef WITH_YAML - return; -#else // WITH_YAML FILE *fh = fopen(yaml_filename, "r"); if(fh == NULL) { printf("Failed to open file!\n"); @@ -535,12 +531,13 @@ CmdLineXAction::createActionsFromYAML( gchar const *yaml_filename ) { } fflush(stdout); -#endif // WITH_YAML } } // Inkscape +#endif // WITH_YAML + /* Local Variables: mode:c++ |
