Skip to content

Commit

Permalink
Changed C std from c11 to c99
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmcclure committed Apr 9, 2024
1 parent 5fb40f7 commit 88b7bcf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"defines": [
"${defines}"
],
"cStandard": "c11",
"cStandard": "c99",
"cppStandard": "c++17",
"macFrameworkPath": [
"/System/Library/Frameworks",
Expand Down
1 change: 1 addition & 0 deletions examples/arch/arm/cmsis-dsp/dot_product/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define _POSIX_C_SOURCE 199309L
#include "arch/arm/cmsis-dsp/nn_dot_product.h"
#include "nn_app.h"
#include "nn_config.h"
Expand Down
1 change: 1 addition & 0 deletions examples/arch/arm/neon/dot_product/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define _POSIX_C_SOURCE 199309L
#include "arch/arm/neon/nn_dot_product.h"
#include "nn_app.h"
#include "nn_config.h"
Expand Down
1 change: 1 addition & 0 deletions examples/arch/generic/dot_product/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define _POSIX_C_SOURCE 199309L
#include "nn_app.h"
#include "nn_config.h"
#include "nn_dot_product.h"
Expand Down
2 changes: 1 addition & 1 deletion scripts/shell/build_artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARCH="${ARCH-}"
TECH="${TECH-}"
ARTIFACT="${ARTIFACT-}"
CC="${CC:-clang}"
CFLAGS_ARRAY=(-Wall -fdiagnostics-color=always -std=c11)
CFLAGS_ARRAY=(-Wall -fdiagnostics-color=always -std=c99)

# Check and add CFLAGS to CFLAGS_ARRAY
if [ -n "${CFLAGS-}" ]; then
Expand Down

0 comments on commit 88b7bcf

Please sign in to comment.