mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-07 14:28:12 +01:00
2e776838ff
So we don't have to extern C and pragma pack in every header file.
24 lines
340 B
C
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
|