Commit 5b3c183a authored by Jan Palus's avatar Jan Palus

fix build without synctex

parent 6218ee88
......@@ -84,12 +84,14 @@ run_synctex_forward(const char* synctex_fwd, const char* filename,
static zathura_t*
init_zathura(const char* config_dir, const char* data_dir,
const char* cache_dir, const char* plugin_path, char** argv,
const char* cache_dir, const char* plugin_path, char** argv
#ifdef WITH_SYNCTEX
, char* synctex_editor
#endif
#ifdef GDK_WINDOWING_X11
char* synctex_editor, Window embed)
#else
char* synctex_editor)
, Window embed
#endif
)
{
/* create zathura session */
zathura_t* zathura = zathura_create();
......@@ -250,11 +252,14 @@ main(int argc, char* argv[])
/* Create zathura session */
zathura_t* zathura = init_zathura(config_dir, data_dir, cache_dir,
plugin_path, argv
#ifdef WITH_SYNCTEX
, synctex_editor
#endif
#ifdef GDK_WINDOWING_X11
plugin_path, argv, synctex_editor, embed);
#else
plugin_path, argv, synctex_editor);
, embed
#endif
);
if (zathura == NULL) {
girara_error("Could not initialize zathura.");
return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment