Skip to content

Conflicting type definition depending on include order #6852

Closed
@dok-net

Description

@dok-net

This is in release 2.6.2.
For some reason that shouldn't matter here, if Arduino.h gets (indirectly) included in Schedule.h, this redefinition bug is raised by the compiler:

cores\esp8266\sntp-lwip2.cpp:

typedef struct __tzrule_struct
{
  char ch;
  int m;
  int n;
  int d;
  int s;
  time_t change;
  int offset;
} __tzrule_type;

tools\sdk\libc\xtensa-lx106-elf\include\time.h:

typedef struct __tzrule_struct
{
  char ch;
  int m;
  int n;
  int d;
  int s;
  time_t change;
  long offset; /* Match type of _timezone. */
} __tzrule_type;

@d-a-v I was asked by @devyte to refer this one to you.

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