Skip to content

IPAddress.h defines variable INADDR_NONE #461

Open
@pianistrevor

Description

@pianistrevor

The header file has a line:
const IPAddress INADDR_NONE(0,0,0,0);
Which means every file that includes this header will be assigned its own INADDR_NONE. Projects with limited static memory will encounter problems when this file is included in many .cpp files.

A suggested workaround (which I have confirmed works) would be to make IPAddress.h say extern const IPAddress INADDR_NONE; and define the actual variable in IPAddress.cpp as const IPAddress INADDR_NONE(0,0,0,0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions