From 090d139b66d11b8f9a33b930277aea8becb7f085 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 4 May 2015 15:18:56 -0700 Subject: Merge to XFA: Kill FX_DEFINEHANDLE Original Review URL: https://codereview.chromium.org/1129433002 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1122903002 --- core/include/fxcrt/fx_stream.h | 4 +++- core/include/fxcrt/fx_system.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'core/include/fxcrt') diff --git a/core/include/fxcrt/fx_stream.h b/core/include/fxcrt/fx_stream.h index c23c71d15b..dc162f064f 100644 --- a/core/include/fxcrt/fx_stream.h +++ b/core/include/fxcrt/fx_stream.h @@ -16,7 +16,9 @@ FX_BOOL FX_GetNextFile(void* handle, CFX_ByteString& filename, FX_BOOL& bFolder) FX_BOOL FX_GetNextFile(void* handle, CFX_WideString& filename, FX_BOOL& bFolder); void FX_CloseFolder(void* handle); FX_WCHAR FX_GetFolderSeparator(); -FX_DEFINEHANDLE(FX_HFILE) +typedef struct FX_HFILE_ { + FX_LPVOID pData; +}* FX_HFILE; #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ #define FX_FILESIZE FX_INT32 #else diff --git a/core/include/fxcrt/fx_system.h b/core/include/fxcrt/fx_system.h index d030bf70d6..ce86d5ad5c 100644 --- a/core/include/fxcrt/fx_system.h +++ b/core/include/fxcrt/fx_system.h @@ -110,7 +110,6 @@ typedef wchar_t* FX_LPWSTR; typedef wchar_t const* FX_LPCWSTR; typedef FX_DWORD FX_UINT32; typedef FX_UINT64 FX_QWORD; -#define FX_DEFINEHANDLE(name) typedef struct _##name {FX_LPVOID pData;} * name; #if defined(DEBUG) && !defined(_DEBUG) #define _DEBUG #endif -- cgit v1.2.3