Skip to content

Commit 34ae8f1

Browse files
committed
compat/win32/path-utils.h: add #include guards
This adds the common guards that allow headers to be #include'd multiple times. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 53696ea commit 34ae8f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compat/win32/path-utils.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef WIN32_PATH_UTILS_H
2+
#define WIN32_PATH_UTILS_H
3+
14
#define has_dos_drive_prefix(path) \
25
(isalpha(*(path)) && (path)[1] == ':' ? 2 : 0)
36
int win32_skip_dos_drive_prefix(char **path);
@@ -18,3 +21,5 @@ static inline char *win32_find_last_dir_sep(const char *path)
1821
#define find_last_dir_sep win32_find_last_dir_sep
1922
int win32_offset_1st_component(const char *path);
2023
#define offset_1st_component win32_offset_1st_component
24+
25+
#endif

0 commit comments

Comments
 (0)