aboutsummaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorTilo Eckert <tilo.eckert@flam.de>2019-02-18 15:53:32 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-02-21 10:51:17 +0100
commit7caf6d2ab62dc2ac964808cedae48d75c4156ddd (patch)
tree015890919897763bb32b8b0187039b18f56d9245 /config.h.cmake
parent5a590dfb5f0c0593dee7d138b8e8ee42ab093406 (diff)
downloadlibssh-7caf6d2ab62dc2ac964808cedae48d75c4156ddd.tar.gz
libssh-7caf6d2ab62dc2ac964808cedae48d75c4156ddd.tar.xz
libssh-7caf6d2ab62dc2ac964808cedae48d75c4156ddd.zip
buffer: Fix regression introduced by 6c7eaa and c306a6
Buffer (un)packing was broken on compilers that are not gcc-compatible since the checks for an argument count of -1 have been removed from ssh_buffer_(un)pack(). This fix no longer uses GCC extensions for the __VA_NARG__ macro, but only plain C99. Note: The macro can no longer count empty argument lists (results in compile error) which was not needed anyway. Signed-off-by: Tilo Eckert <tilo.eckert@flam.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 21216300..672241e4 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -219,7 +219,6 @@
#cmakedefine HAVE_DESTRUCTOR_ATTRIBUTE 1
#cmakedefine HAVE_GCC_VOLATILE_MEMORY_PROTECTION 1
-#cmakedefine HAVE_GCC_NARG_MACRO 1
#cmakedefine HAVE_COMPILER__FUNC__ 1
#cmakedefine HAVE_COMPILER__FUNCTION__ 1