Mercurial > projects > libpws
diff compat/pws-compat.h @ 2:97097b4b6bfb
Add pwsdump utility
The pwsdum utility can dump PasswordSafe database files to a plaintext format
and convert this format back into a PasswordSafe database.
author | Guido Berhoerster <guido+libpws@berhoerster.name> |
---|---|
date | Wed, 01 Apr 2015 14:57:57 +0200 |
parents | d541e748cfd8 |
children |
line wrap: on
line diff
--- a/compat/pws-compat.h Wed Mar 25 17:10:23 2015 +0100 +++ b/compat/pws-compat.h Wed Apr 01 14:57:57 2015 +0200 @@ -35,8 +35,44 @@ #define htobe32 pws_compat_htobe32 #endif /* !defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H) */ +#ifndef HAVE_ERR_H +#define err pws_compat_err +#define errx pws_compat_errx +#define warn pws_compat_warn +#define warnx pws_compat_warnx +#define verr pws_compat_verr +#define verrx pws_compat_verrx +#define vwarn pws_compat_vwarn +#define vwarnx pws_compat_vwarnx +#endif /* !HAVE_ERR_H */ + #ifndef HAVE_GETENTROPY #define getentropy pws_compat_getentropy #endif /* !HAVE_GETENTROPY */ +#ifndef HAVE_GETLINE +#define getline pws_compat_getline +#define getdelim pws_compat_getdelim +#endif /* !HAVE_GETLINE */ + +#ifndef HAVE_READPASSPHRASE_H +#define readpassphrase pws_compat_readpassphrase +#endif /* !HAVE_READPASSPHRASE_H */ + +#ifndef HAVE_SETPROGNAME +#define setprogname pws_compat_setprogname +#define getprogname pws_compat_getprogname +#endif /* !HAVE_SETPROGNAME */ + +#ifndef HAVE_VIS_H +#define vis pws_compat_vis +#define strvis pws_compat_strvis +#define stravis pws_compat_stravis +#define strnvis pws_compat_strnvis +#define strvisx pws_compat_strvisx +#define strunvis pws_compat_strunvis +#define unvis pws_compat_unvis +#define strnunvis pws_compat_strnunvis +#endif /* !HAVE_VIS_H */ + #endif /* PWS_COMPAT_H */