aboutsummaryrefslogtreecommitdiff
path: root/src/common/linux/eintr_wrapper.h
diff options
context:
space:
mode:
authorted.mielczarek@gmail.com <ted.mielczarek@gmail.com>2015-03-24 11:25:14 +0000
committerted.mielczarek@gmail.com <ted.mielczarek@gmail.com>2015-03-24 11:25:14 +0000
commit48b9a40539689743bacbe20df01182b0c367c2c0 (patch)
treed354728b8b9bf838d2c6b83ae22f59aa5c65e7e7 /src/common/linux/eintr_wrapper.h
parentFix compatibility with Android NDK r10d. (diff)
downloadbreakpad-48b9a40539689743bacbe20df01182b0c367c2c0.tar.xz
Fix compilation with gcc --std=c++11
Patch by Jon Turney <jon.turney.1111@gmail.com> R=ted at https://breakpad.appspot.com/7824002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1435 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/linux/eintr_wrapper.h')
-rw-r--r--src/common/linux/eintr_wrapper.h4
1 files changed, 2 insertions, 2 deletions
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) { \