Merge pull request #1966 from cconlon/wctestbench

add define to use test/benchmark.h without path prefix
This commit is contained in:
toddouska
2018-12-12 14:50:32 -08:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@@ -548,7 +548,11 @@ static const char* bench_desc_words[][9] = {
#pragma warning(disable: 4996)
#endif
#include "wolfcrypt/benchmark/benchmark.h"
#ifdef USE_FLAT_BENCHMARK_H
#include "benchmark.h"
#else
#include "wolfcrypt/benchmark/benchmark.h"
#endif
#ifdef WOLFSSL_CURRTIME_REMAP
#define current_time WOLFSSL_CURRTIME_REMAP

View File

@@ -216,7 +216,11 @@
#define printf wolfssl_pb_print
#endif
#include "wolfcrypt/test/test.h"
#ifdef USE_FLAT_TEST_H
#include "test.h"
#else
#include "wolfcrypt/test/test.h"
#endif
#if defined(WOLFSSL_CERT_GEN) && defined(WOLFSSL_MULTI_ATTRIB)
static void initDefaultName(void);