You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/08/14 14:28:21 UTC

svn commit: r804190 - /commons/sandbox/runtime/trunk/src/main/native/shared/sbuf.c

Author: mturk
Date: Fri Aug 14 12:28:21 2009
New Revision: 804190

URL: http://svn.apache.org/viewvc?rev=804190&view=rev
Log:
Like MSVC HP-UX misses va_copy

Modified:
    commons/sandbox/runtime/trunk/src/main/native/shared/sbuf.c

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/sbuf.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/sbuf.c?rev=804190&r1=804189&r2=804190&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/sbuf.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/sbuf.c Fri Aug 14 12:28:21 2009
@@ -303,14 +303,14 @@
         return -1;
 
     do {
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(HP-UX)
         ap_copy = ap;
 #else
         va_copy(ap_copy, ap);
 #endif
         len = vsnprintf((char *)&s->s_buf[s->s_len], SBUF_FREESPACE(s) + 1,
                         fmt, ap_copy);
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(HP-UX)
 
 #else
         va_end(ap_copy);