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

@@ -1,9 +1,7 @@
#pragma once
#include <wut.h>
#ifdef __cplusplus
extern "C" {
#endif
WUT_LIB_HEADER_START
typedef struct OSThread OSThread;
@@ -48,6 +46,4 @@ void
OSInitThreadQueueEx(OSThreadQueue *queue,
void *parent);
#ifdef __cplusplus
}
#endif
WUT_LIB_HEADER_END