wut/include/wut.h
James Benton 2e776838ff Use a macro WUT_LIB_HEADER_{START,END}...
So we don't have to extern C and pragma pack in every header file.
2016-01-07 05:02:17 -08:00

24 lines
340 B
C

#pragma once
#include "wut_structsize.h"
#include "wut_types.h"
#ifdef __cplusplus
#define WUT_LIB_HEADER_START \
extern "C" { \
_Pragma("pack(push, 1)")
#define WUT_LIB_HEADER_END \
_Pragma("pack(pop)") \
}
#else
#define WUT_LIB_HEADER_START \
_Pragma("pack(push, 1)")
#define WUT_LIB_HEADER_END \
_Pragma("pack(pop)")
#endif