monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] Re: nvm.stripped versus botan


From: Lapo Luchini
Subject: [Monotone-devel] Re: nvm.stripped versus botan
Date: Sat, 24 Jan 2009 11:27:20 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0

Zack Weinberg wrote:
> Folks with exotic systems (non-Linux, non-*BSD) might wanna check what
> I did to the configure script, btw.  I might have been overoptimistic.
> :-/

Well, configure worked on CygWin, compile less so ;-)

% make
[...]
In file included from ./sanity.hh:19,
                 from win32/read_password.cc:12:
./numeric_vocab.hh:45:44: macro "max" requires 2 arguments, but only 1 given

% context 45 numeric_vocab.hh
    42    else
    43      {
    44        const size_t char_bit = std::numeric_limits<unsigned
char>::digits;
    45        T mask = std::numeric_limits<T>::max();
    46        size_t shift = (sizeof(T) - sizeof(V)) * char_bit;
    47        mask >>= shift;
    48        return static_cast<T>(v) & mask;

-- 
Lapo Luchini - http://lapo.it/

“…one of the main causes of the fall of the Roman Empire was that,
lacking zero, they had no way to indicate successful termination of
their C programs.” (Robert Firth)





reply via email to

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