Fixed compile errors when EVAL_LEARN or EVAL_NNUE are defined.

This commit is contained in:
Hisayori Noda
2019-06-18 20:28:50 +09:00
parent bcd6985871
commit f58d616198
8 changed files with 34 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
// いまどきの手番つき評価関数(EVAL_KPPTとEVAL_KPP_KKPT)の共用header的なもの。
#if defined (EVAL_KPPT) || defined(EVAL_KPP_KKPT) || defined(EVAL_NNUE)
#if defined(EVAL_NNUE) || defined(EVAL_LEARN)
#include <functional>
// KKファイル名
@@ -77,7 +77,6 @@ namespace Eval
}
#endif
#endif // defined(EVAL_NNUE) || defined(EVAL_LEARN)
#endif // _EVALUATE_KPPT_COMMON_H_

View File

@@ -1,4 +1,6 @@
#include "evaluate_mir_inv_tools.h"
#if defined(EVAL_NNUE) || defined(EVAL_LEARN)
#include "evaluate_mir_inv_tools.h"
namespace Eval
{
@@ -184,3 +186,5 @@ namespace Eval
}
}
#endif // defined(EVAL_NNUE) || defined(EVAL_LEARN)

View File

@@ -1,6 +1,8 @@
#ifndef _EVALUATE_MIR_INV_TOOLS_
#define _EVALUATE_MIR_INV_TOOLS_
#if defined(EVAL_NNUE) || defined(EVAL_LEARN)
// BonaPieceのmirror(左右反転)やinverse(盤上の180度回転)させた駒を得るためのツール類。
#include "../types.h"
@@ -40,4 +42,6 @@ namespace Eval
extern void init_mir_inv_tables();
}
#endif // defined(EVAL_NNUE) || defined(EVAL_LEARN)
#endif