Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

config/platform/avr.hpp undefs F() macro #4

Open
@pnd10

Description

@pnd10

In the Arduino WString.h header, the F() macro is defined to allow strings to be put in flash (saving precious SRAM).

At the end of boost/config/platform/avr.hpp is the following snippet:

// Defined by arduino/wiring WString.h
#ifdef F
  #undef F
#endif

This means that the F() macro no longer works, and produces compilation errors:
error: ‘F’ was not declared in this scope
What is the reason for undefining the macro? At the very least, the explicit reason why F() is undefined should be documented, and what to do about it if you need to use the F() macro

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