[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] CHAR_BIT undeclared on w32.
From: |
John McCabe-Dansted |
Subject: |
[PATCH] CHAR_BIT undeclared on w32. |
Date: |
Sun, 1 Apr 2007 23:45:17 +0800 |
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__
Index: src/libpspp/bt.c
===================================================================
RCS file: /sources/pspp/pspp/src/libpspp/bt.c,v
retrieving revision 1.2
diff -r1.2 bt.c
70a71,76
#ifndef CHAR_BIT
#ifdef __WIN32__
#define CHAR_BIT 8
#endif
#endif
--
John C. McCabe-Dansted
PhD Student
University of Western Australia
- [PATCH] CHAR_BIT undeclared on w32.,
John McCabe-Dansted <=