cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: [PATCH] Three trivial warning fixes

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Mon, 9 Dec 2013 20:47:35 +0000

> On Sun, 8 Dec 2013, Myria wrote:

> Reading it again, I noticed that curl_thread_t is #defined as
> HANDLE: # define curl_thread_t HANDLE
>
> So really, it can just use standard Windows nomenclature for
> working with HANDLEs:
>
> if((t == NULL) || (t == INVALID_HANDLE_VALUE))

Yep that sounds a lot better- effectively it does the cast to int_ptr_t for
us but uses an older / more compatible LONG_PTR #define.

As it is defined in WinBase.h , and I appreciate it is a long time since I
have used / build with vc6, but it should be compatible with older Visual
Studio versions such as this and other Windows compilers :-)

Cheers again

Steve

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-09