Skip to content

PR 41 breaks compilation on non intel platforms #42

Open
@peter-urban

Description

@peter-urban

#41 adds _MM_PERM_ENUM casts which are only defined on x86_64 bit machines. This breaks compiling the code on any arm architecture (e.g. apple M1).

Is it possible to add architecture guards to avoid this problem?

As a workaround I defined _MM_PERM_ENUM as int for non x86 platforms before including xxhash. This may be a viable solution for xxhash itself as well; but I do not know if my include guard catches all architectures cases correctly ..

#if defined(__x86_64__) || defined(_M_X64)
#else
#define _MM_PERM_ENUM int
#endif
#include <xxhash.hpp>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions