summaryrefslogtreecommitdiff
path: root/popt/popt.h
diff options
context:
space:
mode:
authorewt <devnull@localhost>1998-12-29 02:35:08 +0000
committerewt <devnull@localhost>1998-12-29 02:35:08 +0000
commitd3bd733a950b73d36fa5bea2e033fad3f5977184 (patch)
treee4f520641d94ac1434a1811631870d668dce972f /popt/popt.h
parent35381371cda1d98647998f738a8735449a7c4fd3 (diff)
downloadrpm-d3bd733a950b73d36fa5bea2e033fad3f5977184.tar.gz
rpm-d3bd733a950b73d36fa5bea2e033fad3f5977184.tar.bz2
rpm-d3bd733a950b73d36fa5bea2e033fad3f5977184.zip
fixed memset() in help message generation (Dale Hawkins)
added extern "C" stuff to popt.h for C++ compilers (Dale Hawkins) CVS patchset: 2618 CVS date: 1998/12/29 02:35:08
Diffstat (limited to 'popt/popt.h')
-rw-r--r--popt/popt.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/popt/popt.h b/popt/popt.h
index 069cab112..c74253313 100644
--- a/popt/popt.h
+++ b/popt/popt.h
@@ -5,6 +5,10 @@
#ifndef H_POPT
#define H_POPT
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdio.h> /* for FILE * */
#define POPT_OPTION_DEPTH 10
@@ -112,4 +116,8 @@ void poptPrintUsage(poptContext con, FILE * f, int flags);
void poptSetOtherOptionHelp(poptContext con, const char * text);
const char * poptGetInvocationName(poptContext con);
+#ifdef __cplusplus
+}
+#endif
+
#endif