mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Use C99 standard in bazel builds.
This commit is contained in:
parent
18a33169b8
commit
0a5be3cbc5
|
@ -12,6 +12,7 @@ cc_library(
|
||||||
size = "small",
|
size = "small",
|
||||||
srcs = [src],
|
srcs = [src],
|
||||||
copts = [
|
copts = [
|
||||||
|
"-std=c99",
|
||||||
"-Wno-parentheses",
|
"-Wno-parentheses",
|
||||||
],
|
],
|
||||||
deps = [
|
deps = [
|
||||||
|
|
|
@ -42,7 +42,7 @@ static void save_data_encrypted(void)
|
||||||
|
|
||||||
FILE *f = fopen(savefile, "w");
|
FILE *f = fopen(savefile, "w");
|
||||||
|
|
||||||
off_t size = tox_get_savedata_size(t);
|
size_t size = tox_get_savedata_size(t);
|
||||||
uint8_t *clear = (uint8_t *)malloc(size);
|
uint8_t *clear = (uint8_t *)malloc(size);
|
||||||
|
|
||||||
/*this function does not write any data at all*/
|
/*this function does not write any data at all*/
|
||||||
|
|
|
@ -28,6 +28,9 @@ cc_library(
|
||||||
"toxav.h",
|
"toxav.h",
|
||||||
"video.h",
|
"video.h",
|
||||||
],
|
],
|
||||||
|
copts = [
|
||||||
|
"-std=c99",
|
||||||
|
],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"//c-toxcore/toxcore",
|
"//c-toxcore/toxcore",
|
||||||
|
|
|
@ -21,7 +21,7 @@ cc_library(
|
||||||
hdrs = [
|
hdrs = [
|
||||||
"crypto_core.h",
|
"crypto_core.h",
|
||||||
],
|
],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//c-toxcore:__subpackages__"],
|
||||||
deps = [
|
deps = [
|
||||||
":ccompat",
|
":ccompat",
|
||||||
"@libsodium",
|
"@libsodium",
|
||||||
|
@ -74,6 +74,7 @@ cc_library(
|
||||||
"util.h",
|
"util.h",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = [
|
||||||
|
"-std=c99",
|
||||||
"-Wno-parentheses",
|
"-Wno-parentheses",
|
||||||
],
|
],
|
||||||
linkopts = ["-lpthread"],
|
linkopts = ["-lpthread"],
|
||||||
|
|
|
@ -13,6 +13,9 @@ cc_library(
|
||||||
"defines.h",
|
"defines.h",
|
||||||
"toxencryptsave.h",
|
"toxencryptsave.h",
|
||||||
],
|
],
|
||||||
|
copts = [
|
||||||
|
"-std=c99",
|
||||||
|
],
|
||||||
visibility = [
|
visibility = [
|
||||||
"//visibility:public",
|
"//visibility:public",
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user