From 1c021f105b4cc7c9fdc0a1777b7d07b158489453 Mon Sep 17 00:00:00 2001 From: bladeoner Date: Sat, 8 Aug 2020 18:28:28 +0200 Subject: [PATCH] Snes9x - Add explicit declaration of tile unit templates. (#943) Silences warnings and prevents double-compilation. --- source/snes9x/tile.cpp | 32 ++++++++++++++++++++++++++++++++ source/snes9x/tileimpl.h | 1 - 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/source/snes9x/tile.cpp b/source/snes9x/tile.cpp index 4399b69..35d9b15 100644 --- a/source/snes9x/tile.cpp +++ b/source/snes9x/tile.cpp @@ -297,6 +297,38 @@ void S9xInitTileRenderer (void) } // Functions to select which converter and renderer to use. +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; + +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; + +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; +extern template struct TileImpl::Renderers; void S9xSelectTileRenderers (int BGMode, bool8 sub, bool8 obj) { diff --git a/source/snes9x/tileimpl.h b/source/snes9x/tileimpl.h index 6ebfa4f..9ea546e 100644 --- a/source/snes9x/tileimpl.h +++ b/source/snes9x/tileimpl.h @@ -793,7 +793,6 @@ namespace TileImpl { template struct DrawMode7MosaicBG2 : public DrawTileMosaic {}; - #undef DRAW_PIXEL } // namespace TileImpl