2020-06-19 Keith Marshall <keith@users.osdn.me>
+ Force "C" linkage for setup key definitions.
+
+ * src/setup.cpp (uri_key, mirror_key, value_none): Wrap them...
+ (BEGIN_C_DECLS, END_C_DECLS): ...between these.
+
+2020-06-19 Keith Marshall <keith@users.osdn.me>
+
Support all-static linking with recent GCC versions.
* Makefile.in (LDFLAGS): Add "-static" unconditionally.
*
* $Id$
*
- * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
- * Copyright (C) 2013, MinGW.org Project
+ * Written by Keith Marshall <keith@users.osdn.me>
+ * Copyright (C) 2013, 2020, MinGW.org Project
*
*
* Implementation of the mingw-get setup tool's dialogue controller.
/* The following string constants are abstracted from pkgkeys.c;
* we redefine this minimal subset here, to avoid the overhead of
* importing the entire content of the pkgkeys module.
+ *
+ * Note: All of these must be defined with "C" linkage, to comply
+ * with their original declarations in "pkgkeys.h".
*/
+BEGIN_C_DECLS
+
static const char *uri_key = "uri";
static const char *mirror_key = "mirror";
static const char *value_none = "none";
+END_C_DECLS
+
class SetupTool
{
/* Top level class, implementing the controlling features