diff options
Diffstat (limited to 'include/mingw.h')
-rw-r--r-- | include/mingw.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h index 025c4e22b..543172075 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -457,7 +457,16 @@ void init_winsock(void); | |||
457 | int has_bat_suffix(const char *p); | 457 | int has_bat_suffix(const char *p); |
458 | int has_exe_suffix(const char *p); | 458 | int has_exe_suffix(const char *p); |
459 | int has_exe_suffix_or_dot(const char *name); | 459 | int has_exe_suffix_or_dot(const char *name); |
460 | char *add_win32_extension(const char *p); | 460 | char *alloc_win32_extension(const char *p); |
461 | int add_win32_extension(char *p); | ||
462 | |||
463 | static inline char *auto_win32_extension(const char *p) | ||
464 | { | ||
465 | extern char *auto_string(char *str) FAST_FUNC; | ||
466 | char *s = alloc_win32_extension(p); | ||
467 | return s ? auto_string(s) : NULL; | ||
468 | } | ||
469 | |||
461 | void FAST_FUNC convert_slashes(char *p); | 470 | void FAST_FUNC convert_slashes(char *p); |
462 | 471 | ||
463 | int err_win_to_posix(DWORD winerr); | 472 | int err_win_to_posix(DWORD winerr); |