Skip to content

Commit

Permalink
switch to C11 to ease the time.h mess
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Feb 18, 2024
1 parent a7cfcb0 commit aa55b54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compile-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if ! [ -e "$java_home/include/jni.h" ]; then
java_home="$(dirname "$java_home")"
fi

cc_opts=('-std=c99' '-fPIC' '-D' "MVN_VERSION=$version")
cc_opts=('-std=c11' '-fPIC' '-D' "MVN_VERSION=$version")

if grep -Pq -- '-SNAPSHOT$' <<<"$version"; then
cc_opts+=('-g3' '-Og')
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/c/javacan_socketcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <sys/socket.h>
#include <unistd.h>
#include <errno.h>
#include <bits/types/struct_timespec.h>
#include <time.h>

#define GET_FILTERS_DEFAULT_AMOUNT 10

Expand Down

0 comments on commit aa55b54

Please sign in to comment.