Skip to content

Commit 981c39d

Browse files
committed
Excluded floating point macrodef constants out of extern "C" block.
1 parent a23bf39 commit 981c39d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cores/arduino/Arduino.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737

3838
#include "binary.h"
3939

40+
#define PI 3.1415926535897932384626433832795
41+
#define HALF_PI 1.5707963267948966192313216916398
42+
#define TWO_PI 6.283185307179586476925286766559
43+
#define DEG_TO_RAD 0.017453292519943295769236907684886
44+
#define RAD_TO_DEG 57.295779513082320876798154814105
45+
#define EULER 2.718281828459045235360287471352
46+
4047
#ifdef __cplusplus
4148
extern "C"{
4249
#endif
@@ -59,13 +66,6 @@ typedef enum ARD_CHAR_ENUM_XWEZPiBoACuGnH{
5966
OUTPUT_OPENDRAIN = 4,
6067
} PinMode;
6168

62-
#define PI 3.1415926535897932384626433832795
63-
#define HALF_PI 1.5707963267948966192313216916398
64-
#define TWO_PI 6.283185307179586476925286766559
65-
#define DEG_TO_RAD 0.017453292519943295769236907684886
66-
#define RAD_TO_DEG 57.295779513082320876798154814105
67-
#define EULER 2.718281828459045235360287471352
68-
6969
enum ARD_CHAR_ENUM_XWEZPiBoACuGnH{
7070
SERIAL = 0x0,
7171
DISPLAY = 0x1

0 commit comments

Comments
 (0)