Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation issues #586

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Commits on Nov 20, 2024

  1. Add missing includes

    Without them we had incomplete types.
    omircon committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    085d3c0 View commit details
    Browse the repository at this point in the history
  2. Set C standard to c11

    This is needed, because dlt_common.c includes `<QtGlobal>` which includes
    implicitly `<qtypes.h>` which contains
    ```
    static_assert(sizeof(ptrdiff_t) == sizeof(size_t), "Weird ptrdiff_t and size_t definitions");
    ...
    ```
    But `static_assert` in C is available only from c11 standard.
    Though this is working with clang, but not with gcc compiler, so we set
    the standard explicitly to c11.
    omircon committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    cf30a0e View commit details
    Browse the repository at this point in the history