Skip to content

Commit 02eef6a

Browse files
committed
Excluded floating point macrodef constants out of extern "C" block.
1 parent 96ae099 commit 02eef6a

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
@@ -54,13 +61,6 @@ enum ARD_CHAR_ENUM_lAnoShw{
5461
INPUT_PULLUP = 0x2
5562
};
5663

57-
#define PI 3.1415926535897932384626433832795
58-
#define HALF_PI 1.5707963267948966192313216916398
59-
#define TWO_PI 6.283185307179586476925286766559
60-
#define DEG_TO_RAD 0.017453292519943295769236907684886
61-
#define RAD_TO_DEG 57.295779513082320876798154814105
62-
#define EULER 2.718281828459045235360287471352
63-
6464
enum ARD_CHAR_ENUM_lAnoShw{
6565
SERIAL = 0x0,
6666
DISPLAY = 0x1

0 commit comments

Comments
 (0)