From 206bfe29cf9dd631a5efc5b85e2f069f3accd714 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Mon, 30 Mar 2015 16:43:23 +0200 Subject: [PATCH] Fixing build for msvc --- io.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io.h b/io.h index e4cc1d795..0fa292362 100644 --- a/io.h +++ b/io.h @@ -32,7 +32,8 @@ typedef struct ethash_blockhash { uint8_t b[32]; } ethash_blockhash_t; static const char DAG_FILE_NAME[] = "full"; static const char DAG_MEMO_NAME[] = "full.info"; -static const unsigned int DAG_MEMO_BYTESIZE = 36; +// MSVC thinks that "static const unsigned int" is not a compile time variable. Sorry for the #define :( +#define DAG_MEMO_BYTESIZE 36 /// Possible return values of @see ethash_io_prepare enum ethash_io_rc {