You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by ma...@apache.org on 2010/03/04 04:00:55 UTC
svn commit: r918830 - in /hadoop/avro/trunk: CHANGES.txt lang/c/configure.in
lang/c/src/st.h
Author: massie
Date: Thu Mar 4 03:00:55 2010
New Revision: 918830
URL: http://svn.apache.org/viewvc?rev=918830&view=rev
Log:
AVRO-442. sizeof void* and sizeof long detected at configure time. Contributed by Bruce Mitchener.
Modified:
hadoop/avro/trunk/CHANGES.txt
hadoop/avro/trunk/lang/c/configure.in
hadoop/avro/trunk/lang/c/src/st.h
Modified: hadoop/avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/CHANGES.txt?rev=918830&r1=918829&r2=918830&view=diff
==============================================================================
--- hadoop/avro/trunk/CHANGES.txt (original)
+++ hadoop/avro/trunk/CHANGES.txt Thu Mar 4 03:00:55 2010
@@ -24,6 +24,9 @@
AVRO-448. encoding_binary.c doesn't build on big endian platforms
(Bruce Mitchener via massie)
+
+ AVRO-442. sizeof void* and sizeof long detected at configure time
+ (Bruce Mitchener via massie)
BUG FIXES
Modified: hadoop/avro/trunk/lang/c/configure.in
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/c/configure.in?rev=918830&r1=918829&r2=918830&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/c/configure.in (original)
+++ hadoop/avro/trunk/lang/c/configure.in Thu Mar 4 03:00:55 2010
@@ -25,8 +25,6 @@
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
-AC_CHECK_SIZEOF(void *)
-AC_CHECK_SIZEOF(long)
AC_CONFIG_FILES([
Makefile
Modified: hadoop/avro/trunk/lang/c/src/st.h
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/c/src/st.h?rev=918830&r1=918829&r2=918830&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/c/src/st.h (original)
+++ hadoop/avro/trunk/lang/c/src/st.h Thu Mar 4 03:00:55 2010
@@ -8,17 +8,11 @@
*/
#ifndef ST_INCLUDED
-
#define ST_INCLUDED
-#if SIZEOF_LONG == SIZEOF_VOID_P
-typedef unsigned long st_data_t;
-#elif SIZEOF_LONG_LONG == SIZEOF_VOID_P
-typedef unsigned LONG_LONG st_data_t;
-#else
-#error ---->> st.c requires sizeof(void*) == sizeof(long) to be compiled. <<---
-#endif
-#define ST_DATA_T_DEFINED
+#include <stdint.h> /* for uintptr_t */
+
+typedef uintptr_t st_data_t;
typedef struct st_table st_table;
struct st_hash_type {