John W. Eaton wrote:
>   ../libgnu/stdio.h:1087: error: previous declaration of 'int 
> _gl_cxxalias_dummy' with 'C++' linkage
>   ../libgnu/signal.h:246: error: conflicts with new declaration with 'C' 
> linkage

Thanks for reporting this. I'll handle it through the patch below.

But this error also means that you are including <signal.h> within an
'extern "C"'. Which is fishy and may cause trouble elsewhere.

Other than that, no problems? (I'll also write a unit test for this, but
it's more interesting to hear about your success or not.)

Bruno


--- build-aux/c++defs.h.orig    Mon Feb 22 23:56:33 2010
+++ build-aux/c++defs.h Mon Feb 22 23:56:19 2010
@@ -117,10 +117,10 @@
     {                                                         \
       rettype (*const func) parameters = ::rpl_func;          \
     }                                                         \
-    extern int _gl_cxxalias_dummy
+    _GL_EXTERN_C int _gl_cxxalias_dummy
 #else
 # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \
-    extern int _gl_cxxalias_dummy
+    _GL_EXTERN_C int _gl_cxxalias_dummy
 #endif
 
 /* _GL_CXXALIAS_SYS (func, rettype, parameters)
@@ -136,10 +136,10 @@
     {                                              \
       rettype (*const func) parameters = ::func;   \
     }                                              \
-    extern int _gl_cxxalias_dummy
+    _GL_EXTERN_C int _gl_cxxalias_dummy
 #else
 # define _GL_CXXALIAS_SYS(func,rettype,parameters) \
-    extern int _gl_cxxalias_dummy
+    _GL_EXTERN_C int _gl_cxxalias_dummy
 #endif
 
 #endif /* _GL_CXXDEFS_H */


Reply via email to