Skip to content

Commit a72872d

Browse files
committed
Added final tune to MSVC compilation
1 parent da14e01 commit a72872d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

ArduinoCore-Linux/cores/arduino/Arduino.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@
2424
#define _USE_MATH_DEFINES // to provide const like M_PI via <math.h>
2525
#endif
2626

27+
#if defined(_MSC_VER)
28+
// Not available under MSVC
29+
#define __attribute__(x) // nothing
30+
#define __builtin_constant_p(x) (0) // non-constant
31+
#endif
32+
33+
#if defined(_MSC_VER)
34+
// Temporary unsupported under Win/MSVC
35+
#define PROVIDE_HARDWARE_SETUP_SKIP
36+
#define PROVIDE_HARDWARE_WIFI_SKIP
37+
#endif
38+
2739
#include "ArduinoAPI.h"
2840
#include "ArdStdio.h"
2941
#include "ArduinoLogger.h"

0 commit comments

Comments
 (0)