summaryrefslogtreecommitdiffstatshomepage
path: root/drivers/cc3000/inc/cc3000_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cc3000/inc/cc3000_common.h')
-rw-r--r--drivers/cc3000/inc/cc3000_common.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/cc3000/inc/cc3000_common.h b/drivers/cc3000/inc/cc3000_common.h
index b0419a4e79..d263da6591 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__