Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-441 Support Universal binary builds on MacOS X
  3. AVRO-442

sizeof void* and sizeof long detected at configure time

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.3.1
    • c
    • None

    Description

      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?

      Attachments

        1. avro_no_size_checks.diff
          0.8 kB
          Bruce Mitchener

        Activity

          People

            brucem Bruce Mitchener
            brucem Bruce Mitchener
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: