diff options
author | Tomas Mraz <tmraz@redhat.com> | 2012-11-07 14:16:57 +0100 |
---|---|---|
committer | Tomas Mraz <tmraz@redhat.com> | 2012-11-07 14:16:57 +0100 |
commit | d63fd8eee186059750e0faa77593f3b92a47c6c9 (patch) | |
tree | def2086cfd85b1d673e6ef7b5c247833bb0262b9 /src | |
parent | 16ba30e8cefb2084b743df2b60e6d39140809542 (diff) | |
download | libpwquality-d63fd8eee186059750e0faa77593f3b92a47c6c9.tar.gz |
Add extern "C" to the pwquality.h public header file.
Diffstat (limited to 'src')
-rw-r--r-- | src/pwquality.h | 8 |
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 */ /* |