Author: sebor
Date: Mon Jul 31 16:12:56 2006
New Revision: 427355

URL: http://svn.apache.org/viewvc?rev=427355&view=rev
Log:
2006-07-31  Martin Sebor  <[EMAIL PROTECTED]>

        * alloc.cpp (sig_handler): Declqred extern "C" to avoid errors
        due to the incompatibility between extern "C" ane extern "C++"
        functions.
        (<stddef.h>): Included for size_t.

Modified:
    incubator/stdcxx/trunk/tests/self/0.alloc.cpp

Modified: incubator/stdcxx/trunk/tests/self/0.alloc.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/self/0.alloc.cpp?rev=427355&r1=427354&r2=427355&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/self/0.alloc.cpp (original)
+++ incubator/stdcxx/trunk/tests/self/0.alloc.cpp Mon Jul 31 16:12:56 2006
@@ -23,8 +23,9 @@
  *
  **************************************************************************/
 
-#include <signal.h>      // for signal
 #include <setjmp.h>      // for setjmp, longjmp
+#include <signal.h>      // for signal
+#include <stddef.h>      // for size_t
 
 #include <rw_alloc.h>    // for rw_alloc, rw_free
 #include <rw_printf.h>   // for rw_printf
@@ -37,9 +38,14 @@
 
 static jmp_buf mark;
 
-static void sig_handler (int)
+extern "C" {
+
+static void
+sig_handler (int)
 {
     longjmp (mark, -1);
+}
+
 }
 
 #ifdef sigsetjmp


Reply via email to