Undo labeling of elements of rx structures for Windows
[openafs.git] / src / rx / xdr_stdio.c
index 0b24f45..f5886fa 100644 (file)
@@ -58,6 +58,17 @@ static void xdrstdio_destroy();
  * Ops vector for stdio type XDR
  */
 static struct xdr_ops xdrstdio_ops = {
+#ifdef AFS_NT40_ENV
+    /* Windows does not support labeled assignments */
+    xdrstdio_getint32,         /* deserialize an afs_int32 */
+    xdrstdio_putint32,         /* serialize an afs_int32 */
+    xdrstdio_getbytes,         /* deserialize counted bytes */
+    xdrstdio_putbytes,         /* serialize counted bytes */
+    xdrstdio_getpos,           /* get offset in the stream */
+    xdrstdio_setpos,           /* set offset in the stream */
+    xdrstdio_inline,           /* prime stream for inline macros */
+    xdrstdio_destroy           /* destroy stream */
+#else
     .x_getint32 = xdrstdio_getint32,   /* deserialize an afs_int32 */
     .x_putint32 = xdrstdio_putint32,   /* serialize an afs_int32 */
     .x_getbytes = xdrstdio_getbytes,   /* deserialize counted bytes */
@@ -66,6 +77,7 @@ static struct xdr_ops xdrstdio_ops = {
     .x_setpos = xdrstdio_setpos,       /* set offset in the stream */
     .x_inline = xdrstdio_inline,       /* prime stream for inline macros */
     .x_destroy = xdrstdio_destroy      /* destroy stream */
+#endif
 };
 
 /*