bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug fixes for commoncpp2 v1.2.0


From: vhargrave
Subject: Bug fixes for commoncpp2 v1.2.0
Date: Wed, 23 Jun 2004 17:33:22 +0000

I have enclosed modified copies of  thread.h and socket.cpp that had problems 
on Win32 for me.  I have labled the lines or sections that have been modified 
with "----- vic patch" so they are easy to find.  Here is a summary of the 
changes:

1) IPV4Address::setIPAddress() - This method did not work when a host name was 
pased to it.  This is because inet_addr() returns INADDR_NONE when it it passed 
a host name and fails. 

2) In thread.h these lines (109-113) caused link problems which go away when 
they are commented out:

#if defined(_MSC_VER) && (_MSC_VER < 1300)
__declspec(dllimport) long __stdcall InterlockedIncrement(long *);
__declspec(dllimport) long __stdcall InterlockedDecrement(long *);
__declspec(dllimport) long __stdcall InterlockedExchange(long *, long);
#endif

-- vic




reply via email to

[Prev in Thread] Current Thread [Next in Thread]