Add extern "C" modifiers to main public header files for mixing C/C++. Minor modifications to pull request from @bacek.

This commit is contained in:
Kelvin Lawson
2012-07-13 22:13:21 +01:00
parent 43df30809c
commit 34e989424f
5 changed files with 39 additions and 0 deletions

View File

@@ -29,6 +29,10 @@
#ifndef __ATOM_QUEUE_H
#define __ATOM_QUEUE_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct atom_queue
{
ATOM_TCB * putSuspQ; /* Queue of threads waiting to send */
@@ -46,4 +50,8 @@ extern uint8_t atomQueueDelete (ATOM_QUEUE *qptr);
extern uint8_t atomQueueGet (ATOM_QUEUE *qptr, int32_t timeout, uint8_t *msgptr);
extern uint8_t atomQueuePut (ATOM_QUEUE *qptr, int32_t timeout, uint8_t *msgptr);
#ifdef __cplusplus
}
#endif
#endif /* __ATOM_QUEUE_H */