From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D5EAD1F462 for ; Tue, 28 May 2019 12:21:41 +0000 (UTC) Received: from localhost ([127.0.0.1]:33879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVb6n-00037m-Vn for normalperson@yhbt.net; Tue, 28 May 2019 08:21:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVb6k-00037h-HN for bug-gnulib@gnu.org; Tue, 28 May 2019 08:21:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVb6i-0003VR-FX for bug-gnulib@gnu.org; Tue, 28 May 2019 08:21:34 -0400 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]:41761) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVb6e-0003RP-JF for bug-gnulib@gnu.org; Tue, 28 May 2019 08:21:30 -0400 Received: by mail-ed1-x541.google.com with SMTP id m4so31461536edd.8 for ; Tue, 28 May 2019 05:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=youngman-org.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=eb13A6xiapJLakB5KCqG2nOOcCuyWemWeVTgwHQP8+U=; b=T+DxXuu5gv0mtce/PuEYs//lG7lc0vPtwSSwAGrM5gDBBeEOeo7rilhsAJiTELSKq7 U1MTim0UqK/G+0PxYD9TqtyTMT5Z36odsFyiQgG6esqsMgEP9bAzOu+2qB2BpQIkuyhQ L7oU5oQQpzVnGBRLlFIsFUe6wzOhfDddH+BMDyPAGpiloSfpfuPHAgLYA+/2h0YqYU48 9CV+N8X+b3IM9OaPXtB1hWY+t4in6Vpv97Kj6K1+aqQ2YoEytYC+NztPcXzdFB9CXbVZ jiFHat09BQ+aEUExamhKIFoXY7kVPdPDM6CNsXh7nGc5DhNY32PpMSmrHWTS8VGNr+ik Z8yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=eb13A6xiapJLakB5KCqG2nOOcCuyWemWeVTgwHQP8+U=; b=RgCP41jBMhebeBqt3zkHSwzv5p6NvPyhZTeVMAjm8N8dRbIqoQ5/Xvlpcet94ecs5L UmVCnYwrbkDLLcAoMLBILth2GWonItdl15ICzYhmdcTUOW+x604uNOVqKL9UTk7f9eVx ed+zI1aY341NqN//fNS5sbor6dw3ditPraBHBhJa5YihN0qYuC06yNylJwg5Ra3SLajW cuLxF+rY49456L57/OhsE+0u7MZu9ituWGvDc++bSK2LR6W8fuMTDvCa4I7bolAkqlff sV83kSmX0VV1p4iT3MGvQ1p/zZCDubixvQERDDAYauRHYDKuX+jxzQEv/3ni1+UvW3kw At5w== X-Gm-Message-State: APjAAAWPLOZqIoqzO0v+Nw1Nz6qI4b0FjdjzGOqQ3Jvm2mwhTjJKqePq Hq0SdVmO/XhzrOrq/smHrBWIeZTZ1jX85w== X-Google-Smtp-Source: APXvYqzlixabSIksnYkgKH+8C4O78SZgNz4XZitSIef/rziIpV6fLrCYgs6Yk1hlGv/Mwmwtz5rHEA== X-Received: by 2002:a50:885b:: with SMTP id c27mr128500960edc.155.1559046084909; Tue, 28 May 2019 05:21:24 -0700 (PDT) Received: from horizon.spiral-arm.org ([80.111.186.87]) by smtp.gmail.com with ESMTPSA id i5sm4220809edc.20.2019.05.28.05.21.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 May 2019 05:21:24 -0700 (PDT) From: James Youngman To: bug-gnulib@gnu.org Subject: [PATCH] Make it possible to call canonicalize_filename_mode from C++. Date: Tue, 28 May 2019 13:21:16 +0100 Message-Id: <20190528122116.2220-1-jay@gnu.org> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::541 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: James Youngman Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" * lib/canonicalize.h: use extern "C". --- lib/canonicalize.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/canonicalize.h b/lib/canonicalize.h index 2ffa1f681..d21b5b203 100644 --- a/lib/canonicalize.h +++ b/lib/canonicalize.h @@ -21,6 +21,10 @@ #define CAN_MODE_MASK (CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING) +# ifdef __cplusplus +extern "C" { +# endif + enum canonicalize_mode_t { /* All components must exist. */ @@ -45,4 +49,8 @@ typedef enum canonicalize_mode_t canonicalize_mode_t; The result is malloc'd. */ char *canonicalize_filename_mode (const char *, canonicalize_mode_t); +# ifdef __cplusplus +} +# endif + #endif /* !CANONICALIZE_H_ */ -- 2.11.0