Revision 1bb51f8f src/Tests/inet_test.c

View differences:

src/Tests/inet_test.c
62 62
	}
63 63
	printf("to network ");
64 64
	for (i = 0; i < 16; i+=2)
65
	#ifdef _WIN32
65
        #if defined(_WIN32) || defined(__APPLE_CC__)
66 66
	   printf("%02x%02x:", (unsigned char) (((struct sockaddr_in6 *)&s)->sin6_addr.s6_addr[i]),(unsigned char) (((struct sockaddr_in6 *)&s)->sin6_addr.s6_addr[i+1]));
67 67
	#else
68 68
	    printf("%02x%02x:", (uint8_t) (((struct sockaddr_in6 *)&s)->sin6_addr.__in6_u.__u6_addr8[i]),(uint8_t) (((struct sockaddr_in6 *)&s)->sin6_addr.__in6_u.__u6_addr8[i+1]));
......
70 70
	    printf("\n");
71 71
	printf("\tIPv6 Address ");
72 72
	for (i = 0; i < 16; i+=2)
73
		#ifdef _WIN32
73
               #if defined(_WIN32) || defined(__APPLE_CC__)
74 74
		   printf("%02x%02x:", (unsigned char) (((struct sockaddr_in6 *)&s)->sin6_addr.s6_addr[i]),(unsigned char) (((struct sockaddr_in6 *)&s)->sin6_addr.s6_addr[i+1]));
75 75
		#else
76 76
		    printf("%02x%02x:", (uint8_t) (((struct sockaddr_in6 *)&s)->sin6_addr.__in6_u.__u6_addr8[i]),(uint8_t) (((struct sockaddr_in6 *)&s)->sin6_addr.__in6_u.__u6_addr8[i+1]));

Also available in: Unified diff