aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 6ace91470..06fb3b289 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -518,6 +518,8 @@ int utimes(const char *file_name, const struct timeval times[2]);
518 * MinGW specific 518 * MinGW specific
519 */ 519 */
520#define is_dir_sep(c) ((c) == '/' || (c) == '\\') 520#define is_dir_sep(c) ((c) == '/' || (c) == '\\')
521#define is_unc_path(x) (strlen(x) > 4 && is_dir_sep(x[0]) && \
522 is_dir_sep(x[1]) && !is_dir_sep(x[2]))
521 523
522pid_t FAST_FUNC mingw_spawn(char **argv); 524pid_t FAST_FUNC mingw_spawn(char **argv);
523pid_t FAST_FUNC mingw_spawn_detach(char **argv); 525pid_t FAST_FUNC mingw_spawn_detach(char **argv);
@@ -580,3 +582,4 @@ int skip_ansi_emulation(int reset);
580int unix_path(const char *path); 582int unix_path(const char *path);
581int has_path(const char *file); 583int has_path(const char *file);
582int is_relative_path(const char *path); 584int is_relative_path(const char *path);
585char *get_last_slash(const char *path);