[sane-devel] [PATCH 1/4] fix, inconsistent PATH_SEP and DIR_SEP defines

Ruediger Meier sweet_f_a at gmx.de
Sun Jan 15 14:47:24 UTC 2012


From: Ruediger Meier <ruediger.meier at ga-group.nl>

PATH_SEP and DIR_SEP were inconsistently defined on cygwin since
5168206e (also see a28bd843)
---
 sanei/sanei_config.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/sanei/sanei_config.c b/sanei/sanei_config.c
index 1279a3e..5fbc37f 100644
--- a/sanei/sanei_config.c
+++ b/sanei/sanei_config.c
@@ -62,6 +62,9 @@
 #if defined(HAVE_OS2_H)
 # define DIR_SEP       ";"
 # define PATH_SEP      '\\'
+#elif defined(__CYGWIN__)
+# define DIR_SEP       ":"
+# define PATH_SEP      '/'
 #elif defined(HAVE_WINDOWS_H)
 # define DIR_SEP       ";"
 # define PATH_SEP      '\\'
--
1.7.6.1



More information about the sane-devel mailing list