cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: patch for VMS build

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 24 Apr 2007 10:43:58 +0200 (CEST)

On Mon, 23 Apr 2007, Dan Fandrich wrote:

> On Mon, Apr 23, 2007 at 01:21:33PM -0400, Steve Little wrote:
>> + #if __INITIAL_POINTER_SIZE
>> + #pragma pointer_size save
>> + #pragma pointer_size short
>> + #pragma message disable PTRMISMATCH
>> + #endif
>
> These sections ought to have comments saying that they're for VMS only or
> better yet be enclosed in an #ifdef VMS block so it's clear what they're
> there for.

Also, you probably want #ifdef there and not #if for the cases where
__INITIAL_POINTER_SIZE isn't defined at all - to avoid picky compiler
warnings. Possibly, both a check for it being defined and being > 0 if that
truly is what you need for this to evaluate true.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-04-24