* syntax.c (open_include_file) [GTK]: Use mc_home instead of

LIBDIR.
This commit is contained in:
Pavel Roskin 2001-07-20 14:45:30 +00:00
parent 2e136f7ec9
commit 72d0112151
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-07-20 Pavel Roskin <proski@gnu.org>
* syntax.c (open_include_file) [GTK]: Use mc_home instead of
LIBDIR.
2001-07-19 Pavel Roskin <proski@gnu.org>
* editcmd.c (edit_canonicalize_pathname): Don't ever use

View File

@ -597,6 +597,8 @@ int this_allocate_color (WEdit *edit, char *fg)
static char *error_file_name = 0;
extern char *mc_home;
static FILE *open_include_file (char *filename)
{
FILE *f;
@ -613,12 +615,12 @@ static FILE *open_include_file (char *filename)
f = fopen (p, "r");
if (f)
return f;
#ifndef MIDNIGHT
#if !defined (MIDNIGHT) && !defined(GTK)
strcpy (p, LIBDIR "/syntax/");
#else
strcpy (p, mc_home);
strcat (p, "/syntax/");
#endif
#endif /* MIDNIGHT || GTK */
strcat (p, filename);
syntax_free (error_file_name);
error_file_name = (char *) strdup (p);