commit | e80757c1545286240d687e9a303cf8eeb3f9a6de | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Apr 10 12:42:44 2018 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Apr 10 12:42:44 2018 +0200 |
tree | d7815e52f08aa2e5e58faeee86c1d0f8b63ded80 | |
parent | 756ef113d14428e598274f87672d7f0e34ff9781 [diff] [blame] |
patch 8.0.1681: the format attribute fails with MinGW Problem: The format attribute fails with MinGW. (John Marriott) Solution: Don't use the format attribute with MinGW.
diff --git a/src/vim.h b/src/vim.h index 626c0ad..4b41857 100644 --- a/src/vim.h +++ b/src/vim.h
@@ -2085,6 +2085,10 @@ typedef struct stat stat_T; #endif +#if defined(__GNUC__) && !defined(__MINGW32__) +# define USE_PRINTF_FORMAT_ATTRIBUTE +#endif + typedef enum { ASSERT_EQUAL,