diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-10-15 06:48:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-15 06:48:00 +0200 |
commit | 6d5291be450594d453759650f466174f39953c4f (patch) | |
tree | bc8f0616f6748e59e43105c78f5c4505565ab76d /compat/win32 | |
parent | Merge branch 'gs/commit-graph-trace-with-cmd' (diff) | |
parent | ci: also build and test with MS Visual Studio on Azure Pipelines (diff) | |
download | git-6d5291be450594d453759650f466174f39953c4f.tar.xz git-6d5291be450594d453759650f466174f39953c4f.zip |
Merge branch 'js/azure-pipelines-msvc'
CI updates.
* js/azure-pipelines-msvc:
ci: also build and test with MS Visual Studio on Azure Pipelines
ci: really use shallow clones on Azure Pipelines
tests: let --immediate and --write-junit-xml play well together
test-tool run-command: learn to run (parts of) the testsuite
vcxproj: include more generated files
vcxproj: only copy `git-remote-http.exe` once it was built
msvc: work around a bug in GetEnvironmentVariable()
msvc: handle DEVELOPER=1
msvc: ignore some libraries when linking
compat/win32/path-utils.h: add #include guards
winansi: use FLEX_ARRAY to avoid compiler warning
msvc: avoid using minus operator on unsigned types
push: do not pretend to return `int` from `die_push_simple()`
Diffstat (limited to 'compat/win32')
-rw-r--r-- | compat/win32/path-utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compat/win32/path-utils.h b/compat/win32/path-utils.h index 0f70d43920..8ed062a6b7 100644 --- a/compat/win32/path-utils.h +++ b/compat/win32/path-utils.h @@ -1,3 +1,6 @@ +#ifndef WIN32_PATH_UTILS_H +#define WIN32_PATH_UTILS_H + #define has_dos_drive_prefix(path) \ (isalpha(*(path)) && (path)[1] == ':' ? 2 : 0) int win32_skip_dos_drive_prefix(char **path); @@ -18,3 +21,5 @@ static inline char *win32_find_last_dir_sep(const char *path) #define find_last_dir_sep win32_find_last_dir_sep int win32_offset_1st_component(const char *path); #define offset_1st_component win32_offset_1st_component + +#endif |