mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-14 02:47:31 +08:00
Enforce C11
This commit is contained in:
parent
7841e9bf1e
commit
ba6fa809d4
7
lib/xy.h
7
lib/xy.h
@ -22,6 +22,13 @@
|
||||
#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"
|
||||
|
||||
#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 <stdarg.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user