From cfb25b0e80b0ebb52de39c994d410fbe379272f7 Mon Sep 17 00:00:00 2001 From: vitaut Date: Tue, 2 Feb 2016 22:06:54 -0800 Subject: [PATCH] Use typedefs instead of macros --- test/posix-mock-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/posix-mock-test.cc b/test/posix-mock-test.cc index 8baa47c0..6e2793eb 100644 --- a/test/posix-mock-test.cc +++ b/test/posix-mock-test.cc @@ -510,9 +510,9 @@ LocaleType newlocale(int category_mask, const char *locale, LocaleType base) { } #ifdef __APPLE__ -# define FreeLocaleResult int +typedef int FreeLocaleResult; #else -# define FreeLocaleResult void +typedef void FreeLocaleResult; #endif FreeLocaleResult freelocale(LocaleType locale) {