Skip to content

Commit

Permalink
Handle strchr_P alias for AVR code compat
Browse files Browse the repository at this point in the history
This function is used in some projects (Marlin) and require to be defined
  • Loading branch information
tpruvot committed Jul 28, 2019
1 parent a3a5686 commit 9c369ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions STM32F1/cores/maple/avr/pgmspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ typedef uint32_t prog_uint32_t;
#define memcpy_P(dest, src, num) memcpy((dest), (src), (num))
#define strcpy_P(dest, src) strcpy((dest), (src))
#define strcat_P(dest, src) strcat((dest), (src))
#define strchr_P(s, c) strchr((s), (c))
#define strcmp_P(a, b) strcmp((a), (b))
#define strstr_P(a, b) strstr((a), (b))
#define strlen_P(a) strlen((a))
Expand Down
1 change: 1 addition & 0 deletions STM32F4/cores/maple/avr/pgmspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ typedef uint32_t prog_uint32_t;
#define memcpy_P(dest, src, num) memcpy((dest), (src), (num))
#define strcpy_P(dest, src) strcpy((dest), (src))
#define strcat_P(dest, src) strcat((dest), (src))
#define strchr_P(s, c) strchr((s), (c))
#define strcmp_P(a, b) strcmp((a), (b))
#define strstr_P(a, b) strstr((a), (b))
#define strlen_P(a) strlen((a))
Expand Down

0 comments on commit 9c369ac

Please sign in to comment.