summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@redhat.com>2012-11-07 14:16:57 +0100
committerTomas Mraz <tmraz@redhat.com>2012-11-07 14:16:57 +0100
commitd63fd8eee186059750e0faa77593f3b92a47c6c9 (patch)
treedef2086cfd85b1d673e6ef7b5c247833bb0262b9 /src
parent16ba30e8cefb2084b743df2b60e6d39140809542 (diff)
downloadlibpwquality-d63fd8eee186059750e0faa77593f3b92a47c6c9.tar.gz
Add extern "C" to the pwquality.h public header file.
Diffstat (limited to 'src')
-rw-r--r--src/pwquality.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pwquality.h b/src/pwquality.h
index c7a116d..698351f 100644
--- a/src/pwquality.h
+++ b/src/pwquality.h
@@ -10,6 +10,10 @@
#ifndef PWQUALITY_H
#define PWQUALITY_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define PWQ_SETTING_DIFF_OK 1
#define PWQ_SETTING_MIN_LENGTH 3
#define PWQ_SETTING_DIG_CREDIT 4
@@ -132,6 +136,10 @@ pwquality_check(pwquality_settings_t *pwq, const char *password,
const char *
pwquality_strerror(char *buf, size_t len, int errcode, void *auxerror);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* PWQUALITY_H */
/*