summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-03-24 16:13:41 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-03-25 13:56:12 -0400
commit339be35aeec3492b895c7779ad4cc8562162dbee (patch)
tree79808c0b9f5b2c0ee9943c33385bc380587c7847
parentb1a7f7ae253145826acda673c65fbc9e3d8c86d0 (diff)
downloadbfs-339be35aeec3492b895c7779ad4cc8562162dbee.tar.xz
Update from C99 to C11
This is necessary for standard anonymous structs/unions.
-rw-r--r--CONTRIBUTING.md2
-rw-r--r--Makefile2
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 :=