diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-08 14:44:39 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-08 14:44:39 +0200 |
commit | 8c9600879334ce68a72cb1f8de7e6bd156a4b2f2 (patch) | |
tree | 55dc396cd14d6826b3b60cc78bd8e87283404641 | |
parent | 29bd17729dd74080e0070f09654690200c1e11ae (diff) | |
download | gnunet-8c9600879334ce68a72cb1f8de7e6bd156a4b2f2.tar.gz gnunet-8c9600879334ce68a72cb1f8de7e6bd156a4b2f2.zip |
add check to see if CC supports '_Static_assert'
-rw-r--r-- | configure.ac | 8 | ||||
-rw-r--r-- | po/POTFILES.in | 1 |
2 files changed, 9 insertions, 0 deletions
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( | |||
691 | AC_LANG_POP(C) | 691 | AC_LANG_POP(C) |
692 | ]) # $build = $target | 692 | ]) # $build = $target |
693 | 693 | ||
694 | AC_COMPILE_IFELSE([AC_LANG_SOURCE( | ||
695 | [[int main() { | ||
696 | _Static_assert(sizeof(int) >= 4, "not big enough"); | ||
697 | return 0; | ||
698 | };]])], | ||
699 | [AC_DEFINE([HAVE_STATIC_ASSERT],[1],[Static assertions supported])], | ||
700 | [AC_DEFINE([HAVE_STATIC_ASSERT],[0],[Static assertions not supported])]) | ||
701 | |||
694 | # check for bluetooth library | 702 | # check for bluetooth library |
695 | bluetooth=0 | 703 | bluetooth=0 |
696 | AC_MSG_CHECKING(for libbluetooth) | 704 | 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 | |||
437 | src/util/common_logging.c | 437 | src/util/common_logging.c |
438 | src/util/configuration.c | 438 | src/util/configuration.c |
439 | src/util/configuration_loader.c | 439 | src/util/configuration_loader.c |
440 | src/util/consttime_memcmp.c | ||
440 | src/util/container_bloomfilter.c | 441 | src/util/container_bloomfilter.c |
441 | src/util/container_heap.c | 442 | src/util/container_heap.c |
442 | src/util/container_meta_data.c | 443 | src/util/container_meta_data.c |