Skip to content

Commit

Permalink
geanyctags: Fix compilation on Windows
Browse files Browse the repository at this point in the history
Thanks to Enrico for the pain of testing on Windows.
  • Loading branch information
techee committed Oct 19, 2014
1 parent 1a2f8c4 commit c26d40e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions geanyctags/src/geanyctags.c
Expand Up @@ -35,7 +35,6 @@
#include <sys/stat.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>


Expand Down Expand Up @@ -203,6 +202,7 @@ on_generate_tags(GtkMenuItem *menuitem, gpointer user_data)
cmd = g_strconcat(find_string,
" | ctags --totals --fields=fKsSt --extra=-fq --c-kinds=+p --sort=foldcase --excmd=number -L - -f ",
tag_filename, NULL);
g_free(find_string);
#else
/* We don't have find and | on windows, generate tags for all files in the project (-R recursively) */

Expand All @@ -218,7 +218,6 @@ on_generate_tags(GtkMenuItem *menuitem, gpointer user_data)
spawn_cmd(cmd, prj->base_path);

g_free(cmd);
g_free(find_string);
g_free(tag_filename);
}
}
Expand Down

0 comments on commit c26d40e

Please sign in to comment.