From 7df7ca1738f5e8b57ffced243276929824c5c9b8 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Wed, 28 Dec 2005 10:38:12 +0000 Subject: Allowed C++ usage (patch from VMiklos ) --- lib/libalpm/alpm.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 5a0ddf0a..3672442c 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -21,6 +21,10 @@ #ifndef _ALPM_H #define _ALPM_H +#ifdef __cplusplus +extern "C" { +#endif + /* * Arch Linux Package Management library */ @@ -364,6 +368,10 @@ extern enum __pmerrno_t { char *alpm_strerror(int err); +#ifdef __cplusplus +} +#endif + #endif /* _ALPM_H */ /* vim: set ts=2 sw=2 noet: */ -- cgit v1.2.3-24-g4f1b