diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-11-07 11:05:42 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-11-07 11:05:57 +0100 |
commit | fca7d16e8c6b954caccc3042e6994602e254cba5 (patch) | |
tree | 11eb5d06c050a564428e21b406c40277606040b6 | |
parent | c14f33699780e74f56c8633e564bfd5a7ec8f5bc (diff) |
Windows absolute path does not need to start with path separator
Change-Id: Ic76cf78c0b61778008c0aaa0b76a2c622c3e48c5
-rw-r--r-- | liblangtag/liblangtag-0.4.0-windows.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/liblangtag/liblangtag-0.4.0-windows.patch b/liblangtag/liblangtag-0.4.0-windows.patch index 1f2e6d8d5c9f..f922cabf2819 100644 --- a/liblangtag/liblangtag-0.4.0-windows.patch +++ b/liblangtag/liblangtag-0.4.0-windows.patch @@ -293,6 +293,19 @@ } static void +--- misc/liblangtag-0.4.0/liblangtag/lt-string.c ++++ misc/build/liblangtag-0.4.0/liblangtag/lt-string.c +@@ -302,8 +302,10 @@ + lt_return_val_if_fail (string != NULL, NULL); + lt_return_val_if_fail (path != NULL, string); + ++#ifndef _WIN32 + if (lt_string_length(string) == 0 && path[0] != LT_DIR_SEPARATOR) + lt_string_append(string, LT_DIR_SEPARATOR_S); ++#endif + + va_start(ap, path); + p = path; --- misc/liblangtag-0.4.0/liblangtag/lt-tag.c +++ misc/build/liblangtag-0.4.0/liblangtag/lt-tag.c @@ -15,9 +15,15 @@ |