From owner-cvs-all@FreeBSD.ORG Wed Jan 3 10:50:04 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 640CE16A403; Wed, 3 Jan 2007 10:50:04 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 4BB3413C45E; Wed, 3 Jan 2007 10:50:04 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l03Ao4cp033514; Wed, 3 Jan 2007 10:50:04 GMT (envelope-from luigi@repoman.freebsd.org) Received: (from luigi@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l03Ao4fH033513; Wed, 3 Jan 2007 10:50:04 GMT (envelope-from luigi) Message-Id: <200701031050.l03Ao4fH033513@repoman.freebsd.org> From: Luigi Rizzo Date: Wed, 3 Jan 2007 10:50:04 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/usb usbdi_util.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jan 2007 10:50:04 -0000 luigi 2007-01-03 10:50:03 UTC FreeBSD src repository Modified files: sys/dev/usb usbdi_util.h Log: protect against multiple inclusion (this is useful when you start working with third party usb modules, where sometimes it is not easy to set the inclusion order so that there are no multiple inclusions, yet you want to compile with high WARNS levels). I am not sure if there is a standard for having a leading and/or trailing _ in the macro name, the usb code seems to use both. There are still several unprotected headers here so it might be useful to do the same thing on other files as well as the need arises. MFC After: 3 days Revision Changes Path 1.21 +3 -0 src/sys/dev/usb/usbdi_util.h