OSDN Git Service

Include object/tval-types.h to avoid an incomplete type error from clang 11.0.3 for...
authorEric Branlund <ebranlund@fastmail.com>
Sat, 22 Aug 2020 00:40:45 +0000 (17:40 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Sun, 6 Sep 2020 16:37:37 +0000 (09:37 -0700)
src/market/arena-info-table.h
src/system/building-type-definition.h

index 9914aad..1af9012 100644 (file)
@@ -1,6 +1,5 @@
 #pragma once
 
-#include "object/tval-types.h"
 #include "system/angband.h"
 #include "system/building-type-definition.h"
 
index 7027612..8764e36 100644 (file)
@@ -1,6 +1,7 @@
 #pragma once
 
 /* 人畜無害なenumヘッダを先に読み込む */
+#include "object/tval-types.h"
 #include "player/player-classes-types.h"
 #include "player/player-race-types.h"
 #include "realm/realm-types.h"
@@ -11,7 +12,6 @@
 /*!
  * @brief 闘技場のモンスターエントリー構造体 / A structure type for on_defeat_arena_monster entry
  */
-typedef enum tval_type tval_type;
 typedef struct arena_type {
     MONRACE_IDX r_idx; /*!< 闘技場のモンスター種族ID(0ならば表彰式) / Monster (0 means victory prizing) */
     tval_type tval; /*!< モンスター打倒後に得られるアイテムの大カテゴリID / tval of prize (0 means no prize) */