Skip to content

Commit e8a22c1

Browse files
committed
Use C11
1 parent 17bd90f commit e8a22c1

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
! Contributors : Nul None <[email protected]>
88
! |
99
! Created On : <2023-12-28>
10-
! Last Modified : <2025-06-16>
10+
! Last Modified : <2025-06-18>
1111
! ---------------------------------------------------------- -->
1212

1313
<div align="center">
@@ -16,7 +16,7 @@
1616

1717
全平台通用换源工具与框架 `chsrc`**目标支持 Linux, Windows (MSYS2, Cygwin), macOS, BSD 等尽可能多的操作系统环境,龙芯、飞腾、RISC-V 等尽可能多的 CPU**
1818

19-
我们使用 **C99** 来完成上述目标。我们并不使用 Python 或 JS 等解释语言,因为一个简单的换源工具,不应该强行塞给用户一个庞大的解释器和数十、数百 MB 其他文件。
19+
我们使用 **C11** 来完成上述目标。我们并不使用 Python 或 JS 等解释语言,因为一个简单的换源工具,不应该强行塞给用户一个庞大的解释器和数十、数百 MB 其他文件。
2020

2121
本软件为**自由软件**,SDPX 软件许可证为 `GPL-3.0-or-later and MIT`
2222

src/chsrc-main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
* | Mikachu2333 <[email protected]>
3030
* |
3131
* Created On : <2023-08-28>
32-
* Last Modified : <2025-06-17>
32+
* Last Modified : <2025-06-18>
3333
*
3434
* chsrc: Change Source —— 全平台通用命令行换源工具
3535
* ------------------------------------------------------------*/
3636

37-
#define Chsrc_Version "0.2.1.2-dev1"
38-
#define Chsrc_Release_Date "2025/06/16"
37+
#define Chsrc_Version "0.2.1.2-dev2"
38+
#define Chsrc_Release_Date "2025/06/18"
3939
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
4040
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"
4141

src/framework/core.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@
99
* | Yangmoooo <[email protected]>
1010
* |
1111
* Created On : <2023-08-29>
12-
* Last Modified : <2025-03-06>
12+
* Last Modified : <2025-06-18>
1313
*
1414
* chsrc framework
1515
* ------------------------------------------------------------*/
1616

17+
#if defined(__STDC__) && __STDC_VERSION__ < 201112L
18+
# error "chsrc requires C11 or later, please use a new compiler which at least supports C11"
19+
#endif
20+
21+
#if defined(__STDC__) && __STDC_VERSION__ < 201710L
22+
# warning "chsrc recommends a C17 or later compiler"
23+
#endif
24+
1725
#include "xy.h"
1826
#include "struct.h"
1927
#include "mirror.c"

0 commit comments

Comments
 (0)