[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] CHAR_BIT undeclared on w32.
From: |
Ben Pfaff |
Subject: |
Re: [PATCH] CHAR_BIT undeclared on w32. |
Date: |
Sun, 01 Apr 2007 09:32:44 -0700 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
"John McCabe-Dansted" <address@hidden> writes:
> I got this compile error
>
> src/libpspp/bt.c: In function `count_leading_zeros':
> src/libpspp/bt.c:604: error: `CHAR_BIT' undeclared (first use in this
> function) src/libpspp/bt.c:604: error: (Each undeclared identifier is
> reported only once src/libpspp/bt.c:604: error: for each function it
> appears in.)
> src/libpspp/bt.c: In function `floor_log2':
> src/libpspp/bt.c:625: error: `CHAR_BIT' undeclared (first use
> in this function)
>
> I think that CHAR_BIT is meant to be defined to 8 on __WIN32__
I think that file just needs an #include <limits.h>. I checked
in that change, can you verify that it fixes the problem?
--
"I knew it was a bad sign when I drove through Hell (MI) on Wednesday
and there was snow on the ground and all the standing water had a
layer of ice on the surface... Yes folks, Hell has frozen over
and my cable modem *still* wasn't working..." --Ed Glowacki