summaryrefslogtreecommitdiff
path: root/cut-n-paste/synctex/synctex_parser_utils.h
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.h
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.h')
-rw-r--r--cut-n-paste/synctex/synctex_parser_utils.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/cut-n-paste/synctex/synctex_parser_utils.h b/cut-n-paste/synctex/synctex_parser_utils.h
index 18348aa6..db19b2da 100644
--- a/cut-n-paste/synctex/synctex_parser_utils.h
+++ b/cut-n-paste/synctex/synctex_parser_utils.h
@@ -61,18 +61,15 @@ authorization from the copyright holder.
extern "C" {
#endif
-#define FALSE 0
-#define TRUE !FALSE
-
-# if _WIN32
-# define SYNCTEX_CASE_SENSITIVE_PATH FALSE
+# if defined(_WIN32) || defined(__OS2__)
+# define SYNCTEX_CASE_SENSITIVE_PATH 0
# define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c || '\\' == c)
# else
-# define SYNCTEX_CASE_SENSITIVE_PATH TRUE
+# define SYNCTEX_CASE_SENSITIVE_PATH 1
# define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c)
# endif
-# if _WIN32
+# if defined(_WIN32) || defined(__OS2__)
# define SYNCTEX_IS_DOT(c) ('.' == c)
# else
# define SYNCTEX_IS_DOT(c) ('.' == c)