[geany/geany] 411aa9: configure: check for realpath function now MSYS2 has it (#2263)
Nick Treleaven
git-noreply at xxxxx
Sat Sep 21 00:10:25 UTC 2019
Branch: refs/heads/master
Author: Nick Treleaven <n at trelsoft.com>
Committer: elextr <elextr at gmail.com>
Date: Sat, 21 Sep 2019 00:10:25 UTC
Commit: 411aa99c00f6af1156f0a7d891dfcf0ed072e476
https://github.com/geany/geany/commit/411aa99c00f6af1156f0a7d891dfcf0ed072e476
Log Message:
-----------
configure: check for realpath function now MSYS2 has it (#2263)
Fixes #2261.
Modified Paths:
--------------
configure.ac
src/tagmanager/tm_source_file.c
Modified: configure.ac
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -52,7 +52,7 @@ AC_TYPE_SIZE_T
AC_STRUCT_TM
# Checks for library functions.
-AC_CHECK_FUNCS([fgetpos fnmatch mkstemp strerror strstr])
+AC_CHECK_FUNCS([fgetpos fnmatch mkstemp strerror strstr realpath])
# Function checks for u-ctags
AC_CHECK_FUNCS([strcasecmp stricmp], [break])
Modified: src/tagmanager/tm_source_file.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -84,7 +84,7 @@ static int get_path_max(const char *path)
}
-#ifdef G_OS_WIN32
+#if defined(G_OS_WIN32) && !defined(HAVE_REALPATH)
/* realpath implementation for Windows found at http://bugzilla.gnome.org/show_bug.cgi?id=342926
* this one is better than e.g. liberty's lrealpath because this one uses Win32 API and works
* with special chars within the filename */
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list