From patchwork Fri Oct 4 15:09:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koji Nakamaru via GitGitGadget X-Patchwork-Id: 11174873 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2AD181599 for ; Fri, 4 Oct 2019 15:09:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 09998207FF for ; Fri, 4 Oct 2019 15:09:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Eb+ai2QB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389718AbfJDPJc (ORCPT ); Fri, 4 Oct 2019 11:09:32 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52380 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389709AbfJDPJb (ORCPT ); Fri, 4 Oct 2019 11:09:31 -0400 Received: by mail-wm1-f67.google.com with SMTP id r19so6222607wmh.2 for ; Fri, 04 Oct 2019 08:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:in-reply-to:references:from:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=PwAFlDQ5FlWkf4x5wuYtwAm/soXttcp6NKf0ywJLbFQ=; b=Eb+ai2QBNsAnZwd+zER74usy5zXHjcBtELv71wsXsfPXGknG5iWZDldovn2IPKTg6i VJmrxB3s/j7LTwk3Dxig4X54UswtDck9c0awMB+XntVc3BO34UyJbGJmqvEdFilOKN5b J4Be8C5XHpG17S7MLfjI8xodbpSJ1Uw5dhob7lvAUCeRcSpbXfXUxNIoy3Eegi0FxSOj xTbjKNNTwL6Y+BvB4R1im35gkIpLPxyOVClpW5E2OmGxHTaGzzqbWqXPhvFNsUpYK+at 1Eb7KzWSN71/Xpl4nzP5jQs4gVuorHlcPSB+ffUk0GVF6X5pPcqeP6953WvlZlUj6vn/ WbTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:in-reply-to:references:from :subject:fcc:content-transfer-encoding:mime-version:to:cc; bh=PwAFlDQ5FlWkf4x5wuYtwAm/soXttcp6NKf0ywJLbFQ=; b=sZEPDKUWw9p1ARPeMjv7NgSRvRwKZMfYxpvDgXVwA2nmeCxmgTrLvDAqrNqJi3Tamc DODn43ysqeJ6umtMbioM28q4PtoXqdyr43/ofgrWqj8JoJSHnaLC4cY1ZeH23VrKMWhd UFEfVtKzvV4aFfdmDlASduFrVh9HTMTUTFEyxtwGEMAndm8kLjMjS1ewyJ17i5NkcYsR uzuayDCBq9liXaREH/4ny0k9vf/aCwau2ajAj7xHDKDlz0+RpB+STLDliC/fy1MFW9eW XkYOLko7xnbAgKINA7vxkE6GjTfTTwGFRHGoKazP9b/hZUIHoo5xS8K6CuNWUE7byqgt qvtg== X-Gm-Message-State: APjAAAVq1xA/jCFC2jND9E1yqwccYeXasmAexhkidot5faItWq1gEM0P KvIgF5QFIr62f43uh0+5Z9BySAKf X-Google-Smtp-Source: APXvYqzis8rmshyCY4sN+rqi5T1hqckjZlkC3ylRnskWSDJ16x67bFjJHv3GkaoIGCVPE/jrpfjLrg== X-Received: by 2002:a05:600c:2049:: with SMTP id p9mr11153561wmg.30.1570201768921; Fri, 04 Oct 2019 08:09:28 -0700 (PDT) Received: from [127.0.0.1] ([13.74.141.28]) by smtp.gmail.com with ESMTPSA id t4sm5852939wrm.13.2019.10.04.08.09.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Oct 2019 08:09:28 -0700 (PDT) Date: Fri, 04 Oct 2019 08:09:28 -0700 (PDT) X-Google-Original-Date: Fri, 04 Oct 2019 15:09:13 GMT Message-Id: In-Reply-To: References: From: "Johannes Schindelin via GitGitGadget" Subject: [PATCH v3 04/13] compat/win32/path-utils.h: add #include guards Fcc: Sent MIME-Version: 1.0 To: git@vger.kernel.org Cc: Denton Liu , Johannes Schindelin , Junio C Hamano , Johannes Schindelin Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: Johannes Schindelin This adds the common guards that allow headers to be #include'd multiple times. Signed-off-by: Johannes Schindelin --- compat/win32/path-utils.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compat/win32/path-utils.h b/compat/win32/path-utils.h index 0f70d43920..8ed062a6b7 100644 --- a/compat/win32/path-utils.h +++ b/compat/win32/path-utils.h @@ -1,3 +1,6 @@ +#ifndef WIN32_PATH_UTILS_H +#define WIN32_PATH_UTILS_H + #define has_dos_drive_prefix(path) \ (isalpha(*(path)) && (path)[1] == ':' ? 2 : 0) int win32_skip_dos_drive_prefix(char **path); @@ -18,3 +21,5 @@ static inline char *win32_find_last_dir_sep(const char *path) #define find_last_dir_sep win32_find_last_dir_sep int win32_offset_1st_component(const char *path); #define offset_1st_component win32_offset_1st_component + +#endif