Merge branch 'diamondo25-patch-2' into develop

Fix not defined warnings (-Wundef)

(cherry picked from commit 617698e54459ec9f31c894ba83c6f4dfc5570291)
This commit is contained in:
Karel Miko 2017-11-03 17:06:23 +01:00 committed by Steffen Jaeckel
parent 7f6af93798
commit a674de7408
4 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
*/
#include "tomcrypt.h"
#if _POSIX_C_SOURCE >= 200112L
#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L
#include <libgen.h>
#else
#define basename(x) x

View File

@ -18,7 +18,7 @@
#include <tomcrypt.h>
#if _POSIX_C_SOURCE >= 200112L
#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L
#include <libgen.h>
#else
#define basename(x) x

View File

@ -9,7 +9,7 @@
#include "tomcrypt.h"
#if _POSIX_C_SOURCE >= 200112L
#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L
#include <libgen.h>
#else
#define basename(x) x

View File

@ -265,7 +265,7 @@ int hkdf_test(void)
cases[i].info, cases[i].info_l,
cases[i].IKM, cases[i].IKM_l,
OKM, cases[i].OKM_l)) != CRYPT_OK) {
#if LTC_TEST_DBG > 1
#if defined(LTC_TEST_DBG) && (LTC_TEST_DBG > 1)
printf("LTC_HKDF-%s test #%d, %s\n", cases[i].Hash, i, error_to_string(err));
#endif
return err;