summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-12-28 10:38:12 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-12-28 10:38:12 +0000
commit7df7ca1738f5e8b57ffced243276929824c5c9b8 (patch)
treefbc15a9861a6497ca50fd725f2cff2ab7f85d0a8
parenta1b005d2399a2092244c02b83dcf43b0e19553ab (diff)
downloadpacman-7df7ca1738f5e8b57ffced243276929824c5c9b8.tar.xz
Allowed C++ usage (patch from VMiklos <vmiklos@frugalware.org>)
-rw-r--r--lib/libalpm/alpm.h8
1 files changed, 8 insertions, 0 deletions
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: */