Files
vcpkg/ports/pxlib/add_extern_c.patch
Nick D'Ademo bb1ad44ed8 [pxlib] add new port (#49362)
Co-authored-by: Nick D'Ademo <dademo.n@duerr-ndt.com>
2026-01-13 11:28:48 -08:00

28 lines
539 B
Diff

diff --git a/include/paradox.h.in b/include/paradox.h.in
index 3e63fa3..ec2237b 100644
--- a/include/paradox.h.in
+++ b/include/paradox.h.in
@@ -1,6 +1,11 @@
#ifndef __PARADOX_H__
#define __PARADOX_H__
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#define PX_USE_RECODE @PX_HAVE_RECODE@
#define PX_USE_ICONV @PX_HAVE_ICONV@
@@ -557,6 +562,10 @@ PX_date2string(pxdoc_t *pxdoc, long value, const char *format);
PXLIB_API char * PXLIB_CALL
PX_strdup(pxdoc_t *pxdoc, const char *str);
+#ifdef __cplusplus
+}
+#endif
+
#endif
/*