Skip to content

MSVC compile error C2051: case expression not constant #2

@ddengster

Description

@ddengster

Was trying to compile pt.h and pt_test.c on windows when i hit this compile error.
This line is likely causing the error: https://github.com/zserge/pt/blob/master/pt.h#L91

The error's probably about case LINE: not being compatible with MSVC. Is there a workaround of some sort?

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