diff options
author | Darrell Anderson <[email protected]> | 2012-11-26 18:15:56 -0600 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-11-26 18:15:56 -0600 |
commit | 84889ea4c0051c9b4b91e3361f6156e6f1f726dd (patch) | |
tree | 09fc755684fb1792d039f8673b8e2340f5b72f43 /kopete/protocols/jabber/jingle/libjingle/talk/base | |
parent | 2c67f751ab4568d9c1d33d9a4be31e0ca33e8342 (diff) | |
download | tdenetwork-84889ea4c0051c9b4b91e3361f6156e6f1f726dd.tar.gz tdenetwork-84889ea4c0051c9b4b91e3361f6156e6f1f726dd.zip |
Fix automake warnings.
Diffstat (limited to 'kopete/protocols/jabber/jingle/libjingle/talk/base')
3 files changed, 5 insertions, 5 deletions
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/base/criticalsection.h b/kopete/protocols/jabber/jingle/libjingle/talk/base/criticalsection.h index b75ad5c7..145ceba1 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/base/criticalsection.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/base/criticalsection.h @@ -40,7 +40,7 @@ #define CS_TRACK_OWNER 1 #endif // _DEBUG -#if CS_TRACK_OWNER +#ifdef CS_TRACK_OWNER #define TRACK_OWNER(x) x #else // !CS_TRACK_OWNER #define TRACK_OWNER(x) @@ -68,7 +68,7 @@ public: LeaveCriticalSection(&crit_); } -#if CS_TRACK_OWNER +#ifdef CS_TRACK_OWNER bool CurrentThreadIsOwner() const { return thread_ == GetCurrentThreadId(); } #endif // CS_TRACK_OWNER diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc b/kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc index f0228fbd..30d43fc6 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc @@ -246,14 +246,14 @@ uint32 SocketAddress::StringToIP(const std::string& hostname, bool use_dns) { LOG(INFO) << "=== DNS RESOLUTION (" << hostname << ") ==="; #if DISABLE_DNS LOG(WARNING) << "*** DNS DISABLED ***"; -#if WIN32 +#ifdef WIN32 WSASetLastError(WSAHOST_NOT_FOUND); #endif // WIN32 #endif // DISABLE_DNS if (hostent * pHost = gethostbyname(hostname.c_str())) { ip = NetworkToHost32(*reinterpret_cast<uint32 *>(pHost->h_addr_list[0])); } else { -#if WIN32 +#ifdef WIN32 LOG(LS_ERROR) << "gethostbyname error: " << WSAGetLastError(); #else LOG(LS_ERROR) << "gethostbyname error: " << strerror(h_errno); diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/base/winping.h b/kopete/protocols/jabber/jingle/libjingle/talk/base/winping.h index 99ba2fdc..dfe09526 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/base/winping.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/base/winping.h @@ -30,7 +30,7 @@ #ifdef WIN32 -#if _MSC_VER > 1000 +#if defined(_MSC_VER) && _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 |