ropg / ezTime

ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.
MIT License
343 stars 93 forks source link

Global Scope Enumerations Prevent Compilation #178

Open Daedelos opened 6 months ago

Daedelos commented 6 months ago

Duplicate global scope enumerations in libraries (or own code) provent compilation.

ezTime.h enum at line 69 -

typedef enum { NONE, ERROR, INFO, DEBUG } ezDebugLevel_t;

confilcts with NONE in ESP32SSDP.h

ESP32SSDP.h has a global scope enumeration at line 51 -

typedef enum { NONE, SEARCH, NOTIFY } ssdp_method_t;

The global scope enumeration elements (NONE, ERROR, INFO, DEBUG) will conflict with any other variables or other enums and prevent compilation.

error: 'NONE' conflicts with a previous declaration is raised by the compiler in my case