Skip to content
  • Daniele E. Domenichelli's avatar
    CheckTypeSize: Add support for C++ · 07a2342f
    Daniele E. Domenichelli authored
    Previously if headers required to check the size of a type can be
    compiled with C++ compiler only, the check would fail because the C
    compiler fails.  As a consequence, HAVE_${VARIABLE} would be set to
    false, and ${VARIABLE} will be empty.
    
    Teach CHECK_TYPE_SIZE to accept a new optional argument LANGUAGE
    that allows one to explicitly set the compiler to use.  The new
    signature is therefore:
    
       CHECK_TYPE_SIZE(TYPE VARIABLE [BUILTIN_TYPES_ONLY]
                                     [LANGUAGE <language>])
    07a2342f