Status: resolved
Severity:
minor
Category: Vlerq
Created: 2007-11-22
Updated: 2008-02-24
Compile 'vlerq.c' under SunOS sparc with native 'cc' failed.
Line #39 in 'vlerq.c'
#if !defined(_BIG_ENDIAN) && defined(WORDS_BIGENDIAN)
work not as expected because _BIG_ENDIAN is already defined in /usr/include/...
(I do not remember the exact file) as
#define _BIG_ENDIAN
Looking in 'tclInt.h' one can find:
#ifdef HAVE_SYS_TYPES_H # include <sys/types.h> #endif #ifdef HAVE_SYS_PARAM_H # include <sys/param.h> #endif #ifdef BYTE_ORDER # ifdef BIG_ENDIAN # if BYTE_ORDER == BIG_ENDIAN # undef WORDS_BIGENDIAN # define WORDS_BIGENDIAN 1 # endif # endif # ifdef LITTLE_ENDIAN # if BYTE_ORDER == LITTLE_ENDIAN # undef WORDS_BIGENDIAN
My workaround is changing the above line to:
#if defined(WORDS_BIGENDIAN) # endif # endif #endif
- 2007-11-22 rene zaumseil
Created
- 2008-02-24 jcw
Thanks. I'll revisit this in the new vlerq v7 codebase when it is ready to replace the v4 code used in tclkit lite. Marked as resolved for now.
- 2008-02-24 jcw
(Changed: stat)
