div.c and other questions

Vincent Lefevre vincent at vinc17.org
Mon Sep 27 17:58:03 CEST 2004


On 2004-09-27 10:05:07 -0500, Brian Hurt wrote:
> On Mon, 27 Sep 2004, Patrick Pelissier wrote:
> 
> > > The problem is that MSVC implemented the 'near' keyword as a
> > > modifier to pointers, like 'const'. So you could have:
> > >     mp_limb_t near * foo_p;
> > > (foo_p is a near pointer to an mp_limb_t).  
> > > 
> > > I agree that this is a non-conformance to the standard. But this
> > > is also the company that gave us WinMain().
> > 
> >  Aren't there any flags/options to remove this checking?
> 
> I don't think so, but it's been quite some time since I've played
> with MSVC++.

Can you define macros when calling the compiler? For instance, if
this is done with -D, you could just use -Dnear=the_real_near or
something like that.

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


More information about the gmp-discuss mailing list