Skip to content

Consider changing name of "bool" type in cJSON.c introduced in v1.0.1 #71

Closed
@kevinmkane

Description

@kevinmkane

If cJSON.c ends up being compiled with a C++ compiler, it complains because as of commit 6790049 cJSON.c internally defines a bool type to be int. Commenting it out then can lead to problems because the header file still has the parameters as 'int'.

Consider introducing a type with a different name, and using it uniformly in both header file and implementation.

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