projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccc06b2
)
glob: Fix C++ compilation.
author
John W. Eaton
<jwe@octave.org>
Fri, 8 Jan 2010 09:11:07 +0000
(10:11 +0100)
committer
Bruno Haible
<bruno@clisp.org>
Fri, 8 Jan 2010 09:11:07 +0000
(10:11 +0100)
ChangeLog
patch
|
blob
|
history
lib/glob.in.h
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 18ca2b110f7fd001f978377984e8a7c8c61c589b..bd5565b6ffe26f014f784a02747da87a6b5398a5 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,9
@@
+2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
+
+ glob: Fix C++ compilation.
+ * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
+ C++.
+
2010-01-07 Bruno Haible <bruno@clisp.org>
Fix indentation of wctype.in.h, broken since 2007-01-06.
diff --git
a/lib/glob.in.h
b/lib/glob.in.h
index 562f1c52d2f449e5913774ad8bf1b4277fc690e5..8f32a792901067dc561fd79915440a4e2c914399 100644
(file)
--- a/
lib/glob.in.h
+++ b/
lib/glob.in.h
@@
-33,8
+33,13
@@
#include <sys/stat.h>
#ifndef __BEGIN_DECLS
-# define __BEGIN_DECLS
-# define __END_DECLS
+# ifdef __cplusplus
+# define __BEGIN_DECLS extern "C" {
+# define __END_DECLS }
+# else
+# define __BEGIN_DECLS
+# define __END_DECLS
+# endif
#endif
#ifndef __THROW
# define __THROW