Enforce C11

This commit is contained in:
Aoran Zeng 2025-06-20 14:44:05 +08:00
parent 7841e9bf1e
commit ba6fa809d4
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -22,6 +22,13 @@
#define _XY_Maintain_URL "https://github.com/RubyMetric/chsrc/blob/main/lib/xy.h" #define _XY_Maintain_URL "https://github.com/RubyMetric/chsrc/blob/main/lib/xy.h"
#define _XY_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc/blob/main/lib/xy.h" #define _XY_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc/blob/main/lib/xy.h"
#if defined(__STDC__) && __STDC_VERSION__ < 201112L
# error "xy.h requires C11 or later, please use a new compiler which at least supports C11"
#endif
#if defined(__STDC__) && __STDC_VERSION__ < 201710L
# warning "xy.h recommends a C17 or later compiler"
#endif
#include <assert.h> #include <assert.h>
#include <stdarg.h> #include <stdarg.h>