xsubpp treats invalid (indented) cpp directives as comments
Gurusamy Sarathy [Sun, 25 Nov 2001 00:17:28 +0000 (00:17 +0000)]
p4raw-id: //depot/perl@13248

ext/IO/IO.xs

index 6741905..92a51b6 100644 (file)
@@ -444,11 +444,11 @@ sockatmark (sock)
      {
        int flag = 0;
 #   ifdef SIOCATMARK
-       #ifdef NETWARE
+#     ifdef NETWARE
        if (ioctl(fd, SIOCATMARK, (void*)&flag) != 0)
-       #else
-          if (ioctl(fd, SIOCATMARK, &flag) != 0)
-       #endif
+#     else
+       if (ioctl(fd, SIOCATMARK, &flag) != 0)
+#     endif
         XSRETURN_UNDEF;
 #   else
        not_here("IO::Socket::atmark");