From 0a84291cf6aa7c700c6dcb609647b24e3855c31e Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 5 May 2017 03:07:02 +0200 Subject: extract string typedefs to a shared file Change-Id: I6e5d7c828f56b6a3f562ed8a9dd5f63a9d603ce0 --- onlineupdate/source/update/common/readstrings.h | 7 +------ onlineupdate/source/update/updater/archivereader.h | 7 +------ onlineupdate/source/update/updater/progressui.h | 3 +-- 3 files changed, 3 insertions(+), 14 deletions(-) (limited to 'onlineupdate/source') diff --git a/onlineupdate/source/update/common/readstrings.h b/onlineupdate/source/update/common/readstrings.h index bc837ef326b5..747081394c10 100644 --- a/onlineupdate/source/update/common/readstrings.h +++ b/onlineupdate/source/update/common/readstrings.h @@ -11,14 +11,9 @@ #ifdef _WIN32 # include -typedef WCHAR NS_tchar; -#else -typedef char NS_tchar; #endif -#ifndef NULL -#define NULL 0 -#endif +#include "types.hxx" struct StringTable { diff --git a/onlineupdate/source/update/updater/archivereader.h b/onlineupdate/source/update/updater/archivereader.h index 9b7885dc0103..090b787f9cf5 100644 --- a/onlineupdate/source/update/updater/archivereader.h +++ b/onlineupdate/source/update/updater/archivereader.h @@ -9,12 +9,7 @@ #include #include - -#ifdef _WIN32 -typedef WCHAR NS_tchar; -#else -typedef char NS_tchar; -#endif +#include "types.hxx" // This class provides an API to extract files from an update archive. class ArchiveReader diff --git a/onlineupdate/source/update/updater/progressui.h b/onlineupdate/source/update/updater/progressui.h index 455ae125180a..cb1468d3949c 100644 --- a/onlineupdate/source/update/updater/progressui.h +++ b/onlineupdate/source/update/updater/progressui.h @@ -8,12 +8,11 @@ #define PROGRESSUI_H__ #include "updatedefines.h" +#include "types.hxx" #if defined(_WIN32) -typedef WCHAR NS_tchar; #define NS_main wmain #else -typedef char NS_tchar; #define NS_main main #endif -- cgit