error 'isnan' was not declared in this scope

Hello, When I compile my code for ESP8266 module the following errors are issued. I have included Arduino.h in header files.

Arduino.h:270:12: error: ‘std::isinf’ has not been declared

Arduino.h:270:12: error: ‘std::isnan’ has not been declared

What can be the problem?


When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages” (or the icon that looks like two pieces of paper in the Arduino Web Editor). Click that button. Paste the error in a message here USING CODE TAGS (</> button on the forum toolbar). If the text exceeds the forum’s 9000 character limit, save it to a text file and post it as an attachment. If you click the “Reply” button here, you will see an “Attachments and other settings” link.