Skip to content

error: this use of "defined" may not be portable [-Werror=expansion-to-defined] #63

@moschlar

Description

@moschlar

(See also 8693c22#commitcomment-27669403)

Hi there,

Since

building with newer GCC (and Clang supposedly) produces:

util.c: In function 'cjose_apply_allocs':
util.c:53:36: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
 #if (CJOSE_OPENSSL_11X)
     ^~~~~~~~~~~~~~~~~

(Probably due to this patch: https://gcc.gnu.org/ml/gcc-patches/2016-08/msg00738.html)

Maybe there is a way to restructure this macros.

Regards,
Moritz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions