Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion user/inc/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@

#include <math.h>

#ifdef __cplusplus
// In order to support compiling with Clang, explicitly include cmath here since the Clang version
// of the math.h header included above does not include cmath. This is a no-op compiling with GCC
// since the GCC version of math.h includes cmath. We still include math.h under C++ for backwards
// compatibility with user code that might assume certain math functions in the global namespace from
// math.h.
#include <cmath>
#endif

// #ifndef isnan
// #error isnan is not defined please ensure this header is included before any STL headers
// #endif
Expand Down Expand Up @@ -303,4 +312,3 @@ typedef USARTSerial HardwareSerial;


#endif /* ARDUINO_H */

2 changes: 2 additions & 0 deletions wiring/src/spark_wiring_usbserial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
******************************************************************************
*/

#include <algorithm>

#include "spark_wiring_usbserial.h"
#include "platform_headers.h"

Expand Down