From daef72a0e41f0f3203386fc24aa818633e89d943 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 23 Aug 2018 18:33:22 +0900 Subject: Fixed typedef-related warnings from compiler. Also fixed warning on keximdb, indirectly. Signed-off-by: Michele Calgaro --- lib/kwmf/kwmf.cc | 16 ++++++++-------- lib/kwmf/wmfstruct.h | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'lib') diff --git a/lib/kwmf/kwmf.cc b/lib/kwmf/kwmf.cc index 38d520db6..06092a825 100644 --- a/lib/kwmf/kwmf.cc +++ b/lib/kwmf/kwmf.cc @@ -357,33 +357,33 @@ bool KWmf::parse( for (int i = 0; i < s_maxHandles; i++) m_objectHandles[i] = NULL; - typedef struct _RECT + struct RECT { S16 left; S16 top; S16 right; S16 bottom; - } RECT; + }; - typedef struct _RECTL + struct RECTL { S32 left; S32 top; S32 right; S32 bottom; - } RECTL; + }; - typedef struct _SIZE + struct SIZE { S16 width; S16 height; - } SIZE; + }; - typedef struct _SIZEL + struct SIZEL { S32 width; S32 height; - } SIZEL; + }; struct WmfEnhMetaHeader { diff --git a/lib/kwmf/wmfstruct.h b/lib/kwmf/wmfstruct.h index 7400e896e..7c0b56da0 100644 --- a/lib/kwmf/wmfstruct.h +++ b/lib/kwmf/wmfstruct.h @@ -9,33 +9,33 @@ typedef int DWORD; typedef TQ_INT32 LONG; typedef void* _HANDLE; -typedef struct _RECT +struct RECT { WORD left; WORD top; WORD right; WORD bottom; -} RECT; +}; -typedef struct _RECTL +struct RECTL { LONG left; LONG top; LONG right; LONG bottom; -} RECTL; +}; -typedef struct _SIZE +struct SIZE { WORD width; WORD height; -} SIZE; +}; -typedef struct _SIZEL +struct SIZEL { LONG width; LONG height; -} SIZEL; +}; struct WmfEnhMetaHeader -- cgit v1.2.3