ifndef some macros to allow overriding during compilation or be able to get some warnings during redefinition

pull/7761/head
Aashish chaddha 2018-08-08 15:23:19 -05:00
parent 1ab05c28f6
commit 1cdef09698
2 changed files with 8 additions and 0 deletions

View File

@ -33,8 +33,12 @@
/**
* Auxilary macros
*/
#ifndef NL
#define NL "\n"
#endif
#ifndef RCNL
#define RCNL "\r\n"
#endif
/**
* Auxilary macros to keep mbed-drivers compatibility with utest before greentea-client

View File

@ -4,8 +4,12 @@
#include <stdio.h>
#include "mbed.h"
#ifndef NL
#define NL "\n"
#endif
#ifndef RCNL
#define RCNL "\r\n"
#endif
// Const strings used in test_end
extern const char* TEST_ENV_START;