avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Massie (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AVRO-442) sizeof void* and sizeof long detected at configure time
Date Thu, 04 Mar 2010 03:01:28 GMT

     [ https://issues.apache.org/jira/browse/AVRO-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matt Massie reassigned AVRO-442:
--------------------------------

    Assignee: Matt Massie

> sizeof void* and sizeof long detected at configure time
> -------------------------------------------------------
>
>                 Key: AVRO-442
>                 URL: https://issues.apache.org/jira/browse/AVRO-442
>             Project: Avro
>          Issue Type: Sub-task
>          Components: c
>    Affects Versions: 1.3.0
>            Reporter: Bruce Mitchener
>            Assignee: Matt Massie
>         Attachments: avro_no_size_checks.diff
>
>
> configure.in includes this:
> AC_CHECK_SIZEOF(void *)
> AC_CHECK_SIZEOF(long)
> Which is used in st.h:
> #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
> Couldn't that just be uintptr_t or something else and avoid the configure check entirely?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message