[xiph-cvs] cvs commit: net sock.c

Ed oddsock at xiph.org
Mon Jul 7 19:39:33 PDT 2003



oddsock     03/07/07 22:39:33

  Modified:    .        sock.c
  Log:
  more portable va_copy for win32

Revision  Changes    Path
1.34      +1 -1      net/sock.c

Index: sock.c
===================================================================
RCS file: /usr/local/cvsroot/net/sock.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- sock.c	7 Jul 2003 21:33:58 -0000	1.33
+++ sock.c	8 Jul 2003 02:39:33 -0000	1.34
@@ -52,7 +52,7 @@
 #define EWOULDBLOCK WSAEWOULDBLOCK
 #define EALREADY WSAEALREADY
 #define socklen_t    int
-#define va_copy(ap1, ap2) ((ap1) = (ap2))
+#define va_copy(ap1, ap2) memcpy(&ap1, &ap2, sizeof(va_list))
 #endif
 
 #include "sock.h"

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list