From 2951476ce09ec3527d8d32d2a664da7e27e52e07 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 24 Mar 2018 09:40:24 +0200 Subject: [PATCH] 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' --- src/textures/textures.h | 2 +- src/v_video.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textures/textures.h b/src/textures/textures.h index 94fa38567..b9a9b8299 100644 --- a/src/textures/textures.h +++ b/src/textures/textures.h @@ -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, diff --git a/src/v_video.h b/src/v_video.h index 98e81bc1f..aaa1492fa 100644 --- a/src/v_video.h +++ b/src/v_video.h @@ -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.