Skip to content

Commit 20412cd

Browse files
committed
Do not provide some default macro's
Include utils.h manually will provide them Note: str() and xstr() are now capitalized. Fix stm32duino#389 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent eb273d4 commit 20412cd

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Diff for: cores/arduino/utils.h

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#ifndef __UTILS_H
22
#define __UTILS_H
33

4-
#include "avr/dtostrf.h"
5-
6-
// Concatenate 2 strings
4+
/* Concatenate 2 strings */
75
#define CONCAT(s1, s2) (s1 s2)
8-
// Concatenate 2 strings separated by space
6+
/* Concatenate 2 strings separated by space */
97
#define CONCATS(s1, s2) (s1" " s2)
108

11-
// Stringification
12-
#define xstr(s) str(s)
13-
#define str(s) #s
9+
/* Stringification */
10+
#define XSTR(s) STR(s)
11+
#define STR(s) #s
1412

1513
#endif

Diff for: cores/arduino/wiring.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
#include <string.h>
2727
#include <math.h>
2828

29+
#include "avr/dtostrf.h"
2930
#include "binary.h"
3031
#include "itoa.h"
31-
#include "utils.h"
3232

3333
#include "wiring_analog.h"
3434
#include "wiring_constants.h"

0 commit comments

Comments
 (0)