summaryrefslogtreecommitdiff
path: root/cut-n-paste/synctex/synctex_parser_utils.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-23 13:43:36 +0200
committerraveit65 <[email protected]>2016-06-24 13:45:05 +0200
commit9edc6719f9b98ccc19cc78521af5f53cdc05d3cb (patch)
tree2bc7b0da2f455d004555883764314ee38ce15ba6 /cut-n-paste/synctex/synctex_parser_utils.c
parent300f71eb205a43609ddfceefce08559e09e9f7f3 (diff)
downloadatril-9edc6719f9b98ccc19cc78521af5f53cdc05d3cb.tar.bz2
atril-9edc6719f9b98ccc19cc78521af5f53cdc05d3cb.tar.xz
synctex: Update from upstream
taken from: https://git.gnome.org/browse/evince/commit/?id=d0faf92
Diffstat (limited to 'cut-n-paste/synctex/synctex_parser_utils.c')
-rw-r--r--cut-n-paste/synctex/synctex_parser_utils.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cut-n-paste/synctex/synctex_parser_utils.c b/cut-n-paste/synctex/synctex_parser_utils.c
index 6ba6dc9f..70132bda 100644
--- a/cut-n-paste/synctex/synctex_parser_utils.c
+++ b/cut-n-paste/synctex/synctex_parser_utils.c
@@ -57,6 +57,10 @@ authorization from the copyright holder.
#define SYNCTEX_WINDOWS 1
#endif
+#if defined(__OS2__)
+#define SYNCTEX_OS2 1
+#endif
+
#ifdef _WIN32_WINNT_WINXP
#define SYNCTEX_RECENT_WINDOWS 1
#endif
@@ -121,7 +125,7 @@ void _synctex_strip_last_path_extension(char * string) {
last_component = next+1;
}
}
-# ifdef SYNCTEX_WINDOWS
+# if defined(SYNCTEX_WINDOWS) || defined(SYNCTEX_OS2)
/* On Windows, the '\' is also a path separator. */
while((next = strstr(last_component,"\\"))){
last_component = next+1;
@@ -207,7 +211,7 @@ synctex_bool_t _synctex_path_is_absolute(const char * name) {
if(!strlen(name)) {
return synctex_NO;
}
-# if SYNCTEX_WINDOWS
+# if defined(SYNCTEX_WINDOWS) || defined(SYNCTEX_OS2)
if(strlen(name)>2) {
return (name[1]==':' && SYNCTEX_IS_PATH_SEPARATOR(name[2]))?synctex_YES:synctex_NO;
}