Use a macro WUT_LIB_HEADER_{START,END}...

So we don't have to extern C and pragma pack in every header file.
This commit is contained in:
James Benton
2016-01-07 05:02:17 -08:00
parent f3241113f5
commit 2e776838ff
22 changed files with 65 additions and 126 deletions

View File

@@ -2,9 +2,7 @@
#include <wut.h>
#include "threadqueue.h"
#ifdef __cplusplus
extern "C" {
#endif
WUT_LIB_HEADER_START
typedef struct OSFastMutex OSFastMutex;
typedef struct OSFastMutexLink OSFastMutexLink;
@@ -48,6 +46,4 @@ OSFastMutex_Unlock(OSFastMutex *mutex);
BOOL
OSFastMutex_TryLock(OSFastMutex *mutex);
#ifdef __cplusplus
}
#endif
WUT_LIB_HEADER_END