From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 317661397E9 for ; Tue, 18 Aug 2015 14:38:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF85EE085C; Tue, 18 Aug 2015 14:38:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6FF30E085C for ; Tue, 18 Aug 2015 14:38:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C95853409EA for ; Tue, 18 Aug 2015 14:38:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7E708149 for ; Tue, 18 Aug 2015 14:38:20 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1439519110.ca9a45b96c1f73cb0c9f28095954fdcce0c87cd9.vapier@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: paxmacho.h porting.h X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: ca9a45b96c1f73cb0c9f28095954fdcce0c87cd9 X-VCS-Branch: master Date: Tue, 18 Aug 2015 14:38:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 24957705-8be7-4227-90cd-a02a592e87b9 X-Archives-Hash: 45bf1212832aa672e48e6ed2798aee12 commit: ca9a45b96c1f73cb0c9f28095954fdcce0c87cd9 Author: Mike Frysinger gentoo org> AuthorDate: Fri Aug 14 02:25:10 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Fri Aug 14 02:25:10 2015 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=ca9a45b9 use __typeof__ instead of typeof to build with stricter standards paxmacho.h | 2 +- porting.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paxmacho.h b/paxmacho.h index 41ab43a..48ac854 100644 --- a/paxmacho.h +++ b/paxmacho.h @@ -14,7 +14,7 @@ #include "macho.h" -#define MGET(swapped, value) (swapped ? (typeof(value))bswap_32(value) : value) +#define MGET(swapped, value) (swapped ? (__typeof__(value))bswap_32(value) : value) #define MOBJGET(obj, member) MGET((obj)->swapped, (obj)->member) typedef struct _fatobj { diff --git a/porting.h b/porting.h index 32d4171..5bbaa77 100644 --- a/porting.h +++ b/porting.h @@ -124,7 +124,7 @@ #endif #define _minmax(x, y, op) \ - ({ typeof(x) __x = (x); typeof(y) __y = (y); (__x op __y ? __x : __y); }) + ({ __typeof__(x) __x = (x); __typeof__(y) __y = (y); (__x op __y ? __x : __y); }) #if !defined(min) # define min(x, y) _minmax(x, y, <) #endif