Skip to content

Redefined true and false #339

Closed
Closed
@raiden00pl

Description

@raiden00pl

Hi, can you add simple #undef true and #undef false before boolean type definitions in cJSON.c and cJSON_Utils.c ? Without this you get warnings about redefined definitions if some of your custom libc headers include stdbool.h (in my case it is stdio.h -> sched.h -> stdbool.h)

Activity

FSMaxB

FSMaxB commented on Apr 12, 2019

@FSMaxB
Collaborator

Will do!

added a commit that references this issue on Apr 14, 2019
5a52ead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @FSMaxB@raiden00pl

      Issue actions

        Redefined true and false · Issue #339 · DaveGamble/cJSON