]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests/cmocka-common.h: include <stdarg.h> before <cmocka.h>
authorDaiki Ueno <ueno@gnu.org>
Sat, 7 May 2022 08:07:01 +0000 (10:07 +0200)
committerDaiki Ueno <ueno@gnu.org>
Sat, 7 May 2022 08:09:53 +0000 (10:09 +0200)
As documented in <https://api.cmocka.org/group__cmocka.html#details>,
<stdarg.h> must be included before <cmocka.h>.

Suggested by Brad Smith in:
https://gitlab.com/gnutls/gnutls/-/issues/1360

Signed-off-by: Daiki Ueno <ueno@gnu.org>
tests/cmocka-common.h

index 3f0c9316c6a5e75aa8b2b35219c9d38c18c6526e..d89c54d0d0b2afa56ab4e21dde7db12f7b949014 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef GNUTLS_TESTS_CMOCKA_COMMON_H
 #define GNUTLS_TESTS_CMOCKA_COMMON_H
 
+#include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>
 #include <cmocka.h>