os3/os3_common/packing.h
Johnh Stefanelli 2329bce7d3
[Common] Fix packing macros for MSVC
[LibFAT] Fix compilation under MSVC
[Host/mbrCopy] Fix compilation under MSVC
2022-10-02 02:06:46 +02:00

13 lines
No EOL
295 B
C

#ifndef __OS3_PACKING_H
#define __OS3_PACKING_H
#ifdef _MSC_VER
#define OS_PACK_START __pragma(pack(push, 1))
#define OS_PACK_MID
#define OS_PACK_END __pragma(pack(pop))
#else
#define OS_PACK_START
#define OS_PACK_MID __attribute__((packed))
#define OS_PACK_END
#endif
#endif //!__OS3_PACKING_H