[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: add check to see if CC supports '_Static
From: |
gnunet |
Subject: |
[gnunet] branch master updated: add check to see if CC supports '_Static_assert' |
Date: |
Wed, 08 Apr 2020 14:49:15 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 8c9600879 add check to see if CC supports '_Static_assert'
8c9600879 is described below
commit 8c9600879334ce68a72cb1f8de7e6bd156a4b2f2
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Apr 8 14:44:39 2020 +0200
add check to see if CC supports '_Static_assert'
---
configure.ac | 8 ++++++++
po/POTFILES.in | 1 +
2 files changed, 9 insertions(+)
diff --git a/configure.ac b/configure.ac
index c57a56f9f..3b3c9cbe9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -691,6 +691,14 @@ AC_RUN_IFELSE(
AC_LANG_POP(C)
]) # $build = $target
+AC_COMPILE_IFELSE([AC_LANG_SOURCE(
+ [[int main() {
+ _Static_assert(sizeof(int) >= 4, "not big enough");
+ return 0;
+ };]])],
+ [AC_DEFINE([HAVE_STATIC_ASSERT],[1],[Static assertions supported])],
+ [AC_DEFINE([HAVE_STATIC_ASSERT],[0],[Static assertions not supported])])
+
# check for bluetooth library
bluetooth=0
AC_MSG_CHECKING(for libbluetooth)
diff --git a/po/POTFILES.in b/po/POTFILES.in
index aaeed979c..ed9991796 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -437,6 +437,7 @@ src/util/common_endian.c
src/util/common_logging.c
src/util/configuration.c
src/util/configuration_loader.c
+src/util/consttime_memcmp.c
src/util/container_bloomfilter.c
src/util/container_heap.c
src/util/container_meta_data.c
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: add check to see if CC supports '_Static_assert',
gnunet <=