diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdecore/netsupp.h | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/netsupp.h')
-rw-r--r-- | kdecore/netsupp.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kdecore/netsupp.h b/kdecore/netsupp.h index 4dba3f6cc..a6d2015ea 100644 --- a/kdecore/netsupp.h +++ b/kdecore/netsupp.h @@ -66,63 +66,63 @@ struct kde_in6_addr struct kde_sockaddr_in6 { #ifdef HAVE_STRUCT_SOCKADDR_SA_LEN - Q_UINT8 sin6_len; - Q_UINT8 sin6_family; + TQ_UINT8 sin6_len; + TQ_UINT8 sin6_family; #else //HAVE_STRUCT_SOCKADDR_SA_LEN - Q_UINT16 sin6_family; + TQ_UINT16 sin6_family; #endif unsigned short sin6_port; /* RFC says in_port_t */ - Q_UINT32 sin6_flowinfo; + TQ_UINT32 sin6_flowinfo; struct kde_in6_addr sin6_addr; - Q_UINT32 sin6_scope_id; + TQ_UINT32 sin6_scope_id; }; /* IPv6 test macros that could be missing from some implementations */ #define KDE_IN6_IS_ADDR_UNSPECIFIED(a) \ - (((Q_UINT32 *) (a))[0] == 0 && ((Q_UINT32 *) (a))[1] == 0 && \ - ((Q_UINT32 *) (a))[2] == 0 && ((Q_UINT32 *) (a))[3] == 0) + (((TQ_UINT32 *) (a))[0] == 0 && ((TQ_UINT32 *) (a))[1] == 0 && \ + ((TQ_UINT32 *) (a))[2] == 0 && ((TQ_UINT32 *) (a))[3] == 0) #define KDE_IN6_IS_ADDR_LOOPBACK(a) \ - (((Q_UINT32 *) (a))[0] == 0 && ((Q_UINT32 *) (a))[1] == 0 && \ - ((Q_UINT32 *) (a))[2] == 0 && ((Q_UINT32 *) (a))[3] == htonl (1)) + (((TQ_UINT32 *) (a))[0] == 0 && ((TQ_UINT32 *) (a))[1] == 0 && \ + ((TQ_UINT32 *) (a))[2] == 0 && ((TQ_UINT32 *) (a))[3] == htonl (1)) #define KDE_IN6_IS_ADDR_MULTICAST(a) (((u_int8_t *) (a))[0] == 0xff) #define KDE_IN6_IS_ADDR_LINKLOCAL(a) \ - ((((Q_UINT32 *) (a))[0] & htonl (0xffc00000)) == htonl (0xfe800000)) + ((((TQ_UINT32 *) (a))[0] & htonl (0xffc00000)) == htonl (0xfe800000)) #define KDE_IN6_IS_ADDR_SITELOCAL(a) \ - ((((Q_UINT32 *) (a))[0] & htonl (0xffc00000)) == htonl (0xfec00000)) + ((((TQ_UINT32 *) (a))[0] & htonl (0xffc00000)) == htonl (0xfec00000)) #define KDE_IN6_IS_ADDR_V4MAPPED(a) \ - ((((Q_UINT32 *) (a))[0] == 0) && (((Q_UINT32 *) (a))[1] == 0) && \ - (((Q_UINT32 *) (a))[2] == htonl (0xffff))) + ((((TQ_UINT32 *) (a))[0] == 0) && (((TQ_UINT32 *) (a))[1] == 0) && \ + (((TQ_UINT32 *) (a))[2] == htonl (0xffff))) #define KDE_IN6_IS_ADDR_V4COMPAT(a) \ - ((((Q_UINT32 *) (a))[0] == 0) && (((Q_UINT32 *) (a))[1] == 0) && \ - (((Q_UINT32 *) (a))[2] == 0) && (ntohl (((Q_UINT32 *) (a))[3]) > 1)) + ((((TQ_UINT32 *) (a))[0] == 0) && (((TQ_UINT32 *) (a))[1] == 0) && \ + (((TQ_UINT32 *) (a))[2] == 0) && (ntohl (((TQ_UINT32 *) (a))[3]) > 1)) #define KDE_IN6_ARE_ADDR_EQUAL(a,b) \ - ((((Q_UINT32 *) (a))[0] == ((Q_UINT32 *) (b))[0]) && \ - (((Q_UINT32 *) (a))[1] == ((Q_UINT32 *) (b))[1]) && \ - (((Q_UINT32 *) (a))[2] == ((Q_UINT32 *) (b))[2]) && \ - (((Q_UINT32 *) (a))[3] == ((Q_UINT32 *) (b))[3])) + ((((TQ_UINT32 *) (a))[0] == ((TQ_UINT32 *) (b))[0]) && \ + (((TQ_UINT32 *) (a))[1] == ((TQ_UINT32 *) (b))[1]) && \ + (((TQ_UINT32 *) (a))[2] == ((TQ_UINT32 *) (b))[2]) && \ + (((TQ_UINT32 *) (a))[3] == ((TQ_UINT32 *) (b))[3])) #define KDE_IN6_IS_ADDR_MC_NODELOCAL(a) \ - (KDE_IN6_IS_ADDR_MULTICAST(a) && ((((Q_UINT8 *) (a))[1] & 0xf) == 0x1)) + (KDE_IN6_IS_ADDR_MULTICAST(a) && ((((TQ_UINT8 *) (a))[1] & 0xf) == 0x1)) #define KDE_IN6_IS_ADDR_MC_LINKLOCAL(a) \ - (KDE_IN6_IS_ADDR_MULTICAST(a) && ((((Q_UINT8 *) (a))[1] & 0xf) == 0x2)) + (KDE_IN6_IS_ADDR_MULTICAST(a) && ((((TQ_UINT8 *) (a))[1] & 0xf) == 0x2)) #define KDE_IN6_IS_ADDR_MC_SITELOCAL(a) \ - (KDE_IN6_IS_ADDR_MULTICAST(a) && ((((Q_UINT8 *) (a))[1] & 0xf) == 0x5)) + (KDE_IN6_IS_ADDR_MULTICAST(a) && ((((TQ_UINT8 *) (a))[1] & 0xf) == 0x5)) #define KDE_IN6_IS_ADDR_MC_ORGLOCAL(a) \ - (KDE_IN6_IS_ADDR_MULTICAST(a) && ((((Q_UINT8 *) (a))[1] & 0xf) == 0x8)) + (KDE_IN6_IS_ADDR_MULTICAST(a) && ((((TQ_UINT8 *) (a))[1] & 0xf) == 0x8)) #define KDE_IN6_IS_ADDR_MC_GLOBAL(a) \ - (KDE_IN6_IS_ADDR_MULTICAST(a) && ((((Q_UINT8 *) (a))[1] & 0xf) == 0xe)) + (KDE_IN6_IS_ADDR_MULTICAST(a) && ((((TQ_UINT8 *) (a))[1] & 0xf) == 0xe)) #ifdef NEED_IN6_TESTS # define IN6_IS_ADDR_UNSPECIFIED KDE_IN6_IS_ADDR_UNSPECIFIED @@ -143,8 +143,8 @@ struct kde_sockaddr_in6 /* Special internal structure */ #define KAI_SYSTEM 0 /* data is all-system */ -#define KAI_LOCALUNIX 1 /* data contains a Unix addrinfo allocated by us */ -#define KAI_QDNS 2 /* data contains data derived from TQDns */ +#define KAI_LOCALUNIX 1 /* data tqcontains a Unix addrinfo allocated by us */ +#define KAI_QDNS 2 /* data tqcontains data derived from TQDns */ struct addrinfo; /* forward declaration; this could be needed */ |