Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit bf2da48

Browse files
author
Cruz Monrreal
authored
Merge pull request ARMmbed#7761 from aashishc1988/master
ifndef some macros to allow overriding during compilation
2 parents a24cecf + 1cdef09 commit bf2da48

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

features/frameworks/greentea-client/greentea-client/test_env.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@
3333
/**
3434
* Auxilary macros
3535
*/
36+
#ifndef NL
3637
#define NL "\n"
38+
#endif
39+
#ifndef RCNL
3740
#define RCNL "\r\n"
41+
#endif
3842

3943
/**
4044
* Auxilary macros to keep mbed-drivers compatibility with utest before greentea-client

features/unsupported/tests/mbed/env/test_env.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
#include <stdio.h>
55
#include "mbed.h"
66

7+
#ifndef NL
78
#define NL "\n"
9+
#endif
10+
#ifndef RCNL
811
#define RCNL "\r\n"
12+
#endif
913

1014
// Const strings used in test_end
1115
extern const char* TEST_ENV_START;

0 commit comments

Comments
 (0)