summaryrefslogtreecommitdiff
path: root/lib/hard-locale.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hard-locale.h')
-rw-r--r--lib/hard-locale.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/hard-locale.h b/lib/hard-locale.h
index 21c5c546..5d40e522 100644
--- a/lib/hard-locale.h
+++ b/lib/hard-locale.h
@@ -16,7 +16,12 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. */
#ifndef HARD_LOCALE_H_
-# define HARD_LOCALE_H_ 1
+#define HARD_LOCALE_H_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Return true if the specified CATEGORY of the current locale is hard, i.e.
different from the C or POSIX locale that has a fixed behavior.
@@ -25,4 +30,9 @@
per-thread locale. */
extern bool hard_locale (int category);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* HARD_LOCALE_H_ */