From: James Youngman <jay@gnu.org>
To: bug-gnulib@gnu.org
Cc: James Youngman <jay@gnu.org>
Subject: [PATCH] Make it possible to call canonicalize_filename_mode from C++.
Date: Tue, 28 May 2019 13:21:16 +0100 [thread overview]
Message-ID: <20190528122116.2220-1-jay@gnu.org> (raw)
* 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
next reply other threads:[~2019-05-28 12:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-28 12:21 James Youngman [this message]
2019-05-28 21:06 ` [PATCH] Make it possible to call canonicalize_filename_mode from C++ Bruno Haible
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190528122116.2220-1-jay@gnu.org \
--to=jay@gnu.org \
--cc=bug-gnulib@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).