diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-12-08 13:16:32 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-08 13:16:32 -0800 |
commit | e95566d9095ae93abe59360b22a103767e2da23c (patch) | |
tree | e369832a2896af657536a8a48c652a7315916fb6 /git-compat-util.h | |
parent | The first batch to start the current cycle (diff) | |
parent | git-compat-util: add a test balloon for C99 support (diff) | |
download | tgif-e95566d9095ae93abe59360b22a103767e2da23c.tar.xz |
Merge branch 'bc/require-c99' into jk/limit-developers-to-gnu99
* bc/require-c99:
git-compat-util: add a test balloon for C99 support
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index c6bd2a84e5..98c4f2c81e 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -1,6 +1,19 @@ #ifndef GIT_COMPAT_UTIL_H #define GIT_COMPAT_UTIL_H +#if __STDC_VERSION__ - 0 < 199901L +/* + * Git is in a testing period for mandatory C99 support in the compiler. If + * your compiler is reasonably recent, you can try to enable C99 support (or, + * for MSVC, C11 support). If you encounter a problem and can't enable C99 + * support with your compiler (such as with "-std=gnu99") and don't have access + * to one with this support, such as GCC or Clang, you can remove this #if + * directive, but please report the details of your system to + * git@vger.kernel.org. + */ +#error "Required C99 support is in a test phase. Please see git-compat-util.h for more details." +#endif + #ifdef USE_MSVC_CRTDBG /* * For these to work they must appear very early in each |