Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756236AbaAFVAJ (ORCPT ); Mon, 6 Jan 2014 16:00:09 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:45639 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755092AbaAFVAF (ORCPT ); Mon, 6 Jan 2014 16:00:05 -0500 Date: Mon, 6 Jan 2014 13:00:03 -0800 From: Andrew Morton To: Josh Triplett Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds , Greg Kroah-Hartman , Michal Marek , Sam Ravnborg , Rashika Kheria Subject: Re: #pragma once? Message-Id: <20140106130003.4eea0893605369a8fd9336ac@linux-foundation.org> In-Reply-To: <20140106204706.GA16924@leaf> References: <20140106204706.GA16924@leaf> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 6 Jan 2014 12:47:07 -0800 Josh Triplett wrote: > Does anyone have any objection to the use of "#pragma once" instead of > the usual #ifndef-#define-...-#endif include guard? Sounds OK to me. gcc has supported this for quite a long time, yes? I wonder if ICC supports it. (I haven't heard anything of ICC-for-kernel in a long time - is it still a living thing?) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/