diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-09-30 23:25:42 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-09-30 23:25:42 +0100 |
| commit | 8762418d0c96e92824357b63ae1e2e7d914343e7 (patch) | |
| tree | b563e6236fd334560f4b891053dd4b36210622dc /drivers/cc3000/inc/cc3000_common.h | |
| parent | 9d2bf9c40573bd43856ad42c9f5eaad3b8370a24 (diff) | |
drivers, cc3000: Wrap exported functions in a macro for renaming.
Diffstat (limited to 'drivers/cc3000/inc/cc3000_common.h')
| -rw-r--r-- | drivers/cc3000/inc/cc3000_common.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/cc3000/inc/cc3000_common.h b/drivers/cc3000/inc/cc3000_common.h index b0419a4e7..d263da659 100644 --- a/drivers/cc3000/inc/cc3000_common.h +++ b/drivers/cc3000/inc/cc3000_common.h @@ -32,8 +32,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *****************************************************************************/ -#ifndef __COMMON_H__ -#define __COMMON_H__ +#ifndef __CC3000_COMMON_H__ +#define __CC3000_COMMON_H__ #include "data_types.h" @@ -44,6 +44,11 @@ #include <stdint.h> //***************************************************************************** +// Prefix exported names to avoid name clash +//***************************************************************************** +#define CC3000_EXPORT(name) cc3000_ ## name + +//***************************************************************************** // // If building with a C++ compiler, make all of the definitions in this header // have a C binding. @@ -53,7 +58,7 @@ extern "C" { #endif -extern int errno; +extern int CC3000_EXPORT(errno); //***************************************************************************** // ERROR CODES @@ -357,4 +362,4 @@ extern UINT32 STREAM_TO_UINT32_f(CHAR* p, UINT16 offset); } #endif // __cplusplus -#endif // __COMMON_H__ +#endif // __CC3000_COMMON_H__ |
