Fixed compilation with GCC and Clang

src/v_video.h:56:6: error: ISO C++ forbids forward references to 'enum' types
src/v_video.h:342:17: error: field has incomplete type 'FTextureFormat'
src/v_video.h:344:47: error: variable has incomplete type 'FTextureFormat'
This commit is contained in:
alexey.lysiuk 2018-03-24 09:40:24 +02:00
parent 634a10db52
commit 2951476ce0
2 changed files with 2 additions and 2 deletions

View file

@ -154,7 +154,7 @@ struct patch_t
// All FTextures present their data to the world in 8-bit format, but if
// the source data is something else, this is it.
enum FTextureFormat
enum FTextureFormat : uint32_t
{
TEX_Pal,
TEX_Gray,

View file

@ -53,7 +53,7 @@ void V_CalcCleanFacs (int designwidth, int designheight, int realwidth, int real
class FTexture;
struct FColormap;
enum FTextureFormat;
enum FTextureFormat : uint32_t;
// TagItem definitions for DrawTexture. As far as I know, tag lists
// originated on the Amiga.