From 339be35aeec3492b895c7779ad4cc8562162dbee Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 24 Mar 2022 16:13:41 -0400 Subject: Update from C99 to C11 This is necessary for standard anonymous structs/unions. --- CONTRIBUTING.md | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ff502b4..d4244ae 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -136,7 +136,7 @@ Some of these tests require `sudo`, and will prompt for your password if necessa Hacking ------- -`bfs` is written in [C](https://en.wikipedia.org/wiki/C_(programming_language)), specifically [C99](https://en.wikipedia.org/wiki/C99). +`bfs` is written in [C](https://en.wikipedia.org/wiki/C_(programming_language)), specifically [C11](https://en.wikipedia.org/wiki/C11_(C_standard_revision)). You can get a feel for the coding style by skimming the source code. [`main.c`](/main.c) contains an overview of the rest of source files. A quick summary: diff --git a/Makefile b/Makefile index 01b2c8d..1b6ea31 100644 --- a/Makefile +++ b/Makefile @@ -61,7 +61,7 @@ LOCAL_CPPFLAGS := \ -D_GNU_SOURCE \ -DBFS_VERSION=\"$(VERSION)\" -LOCAL_CFLAGS := -std=c99 +LOCAL_CFLAGS := -std=c11 LOCAL_LDFLAGS := LOCAL_LDLIBS := -- cgit v1.2.3