From 48b9a40539689743bacbe20df01182b0c367c2c0 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Tue, 24 Mar 2015 11:25:14 +0000 Subject: Fix compilation with gcc --std=c++11 Patch by Jon Turney R=ted at https://breakpad.appspot.com/7824002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1435 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/linux/eintr_wrapper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common') diff --git a/src/common/linux/eintr_wrapper.h b/src/common/linux/eintr_wrapper.h index 35e5e245..3f1d1848 100644 --- a/src/common/linux/eintr_wrapper.h +++ b/src/common/linux/eintr_wrapper.h @@ -37,7 +37,7 @@ // #define HANDLE_EINTR(x) ({ \ - typeof(x) eintr_wrapper_result; \ + __typeof__(x) eintr_wrapper_result; \ do { \ eintr_wrapper_result = (x); \ } while (eintr_wrapper_result == -1 && errno == EINTR); \ @@ -45,7 +45,7 @@ }) #define IGNORE_EINTR(x) ({ \ - typeof(x) eintr_wrapper_result; \ + __typeof__(x) eintr_wrapper_result; \ do { \ eintr_wrapper_result = (x); \ if (eintr_wrapper_result == -1 && errno == EINTR) { \ -- cgit v1.2.1