summaryrefslogtreecommitdiff
path: root/dmake/extern.h
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-06-12 05:05:25 +0000
committerOliver Bolte <obo@openoffice.org>2007-06-12 05:05:25 +0000
commit7734b689c8deb8e808b1ac3642aebd86ea6b9f62 (patch)
tree02e0824e555dc8a45fea804a09d6c91ff29da689 /dmake/extern.h
parent8de2d7bf216fcf9560d5c1d9756c0e42e98a70b2 (diff)
INTEGRATION: CWS dmake48 (1.10.2); FILE MERGED
2007/03/17 19:00:37 vq 1.10.2.1: #i73499# Add new .WINPATH attribute to generate Windows style paths (with regular slashes) instead of the default cygwin style (POSIX) paths for dmake's dynamic macros. This attribute is specific for cygwin dmake executables and non-cygwin environments ignore this attribute. The windows style paths use regular slashes ('/') instead of the usual windows backslash ('\') as directory separator to avoid quoting problems (It still is a cygwin dmake!) and cygwin as well as native windows programs should have no problems using this (c:/foo/bar) path representation. The affected macros are $@, $*, $>, $?, $<, $&, $^ and $(PWD), $(MAKEDIR) and $(TMD). Examples: Content of $(PWD) without .WINPATH (default): /cygdrive/c/temp Content of $(PWD) with .WINPATH set: c:/temp
Diffstat (limited to 'dmake/extern.h')
-rw-r--r--dmake/extern.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/dmake/extern.h b/dmake/extern.h
index c47a9a9d6a75..019ce3fc796c 100644
--- a/dmake/extern.h
+++ b/dmake/extern.h
@@ -1,6 +1,6 @@
/* $RCSfile: extern.h,v $
--- $Revision: 1.10 $
--- last change: $Author: vg $ $Date: 2007-01-18 09:29:52 $
+-- $Revision: 1.11 $
+-- last change: $Author: obo $ $Date: 2007-06-12 06:05:25 $
--
-- SYNOPSIS
-- External declarations for dmake functions.
@@ -108,6 +108,15 @@ char *strlwr(char *p);
/* from path.c */
void Clean_path(char *path);
+/* from sysintf.c */
+/* cygdospath()/DO_WINPATH() are only needed for the .WINPATH attribute
+ * on cygwin. */
+#if __CYGWIN__
+char *cygdospath(char *src, int winpath);
+# define DO_WINPATH(p) cygdospath(p, UseWinpath)
+#else
+# define DO_WINPATH(p) p
+#endif
/* Define some usefull macros. This is done here and not in config.h