~mingw-w64/mingw-w64/experimental

« back to all changes in this revision

Viewing changes to ros-privexp/mingw-w64-crt/libsrc/ws2tcpip/in6_is_addr_loopback.c

  • Committer: NightStrike
  • Date: 2010-08-11 22:20:57 UTC
  • Revision ID: svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:experimental:3266
Branch for adding option for supporting ros

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef WIN32_LEAN_AND_MEAN
 
2
#define WIN32_LEAN_AND_MEAN
 
3
#endif
 
4
#undef  __CRT__NO_INLINE
 
5
#define __CRT__NO_INLINE
 
6
#include <winsock2.h>
 
7
#include <ws2tcpip.h>
 
8
 
 
9
int IN6_IS_ADDR_LOOPBACK(const struct in6_addr *a)
 
10
{
 
11
        return ((a->s6_words[0] == 0) &&
 
12
                (a->s6_words[1] == 0) &&
 
13
                (a->s6_words[2] == 0) &&
 
14
                (a->s6_words[3] == 0) &&
 
15
                (a->s6_words[4] == 0) &&
 
16
                (a->s6_words[5] == 0) &&
 
17
                (a->s6_words[6] == 0) &&
 
18
                (a->s6_words[7] == 0x0100));
 
19
}