rainmeter-studio/Library/ccalc-0.5.1/pack.h
Kimmo Pekkola 30edc895f2
2009-02-10 18:37:48 +00:00

24 lines
749 B
C

/* Definitions for packing structures */
#ifndef __PACK_H__
#define __PACK_H__
#if defined(__BORLANDC__) && (__BORLANDC <= 0x520)
# define PACK_START #pragma option -a1
#elif (defined(__GNUC__) && (__GNUC__ <= 2) && (__GNUC_MINOR__ < 95)) \
|| (defined(__WATCOMC__) && (__WATCOMC__ < 1100))
# define PACK_START #pragma pack(1)
#else
# define PACK_START #pragma pack(push,1)
#endif
#if defined(__BORLANDC__) && (__BORLANDC <= 0x520)
# define PACK_STOP #pragma option -a.
#elif (defined(__GNUC__) && (__GNUC__ <= 2) && (__GNUC_MINOR__ < 95)) \
|| (defined(__WATCOMC__) && (__WATCOMC__ < 1100))
# define PACK_STOP #pragma pack()
#else
# define PACK_STOP #pragma pack(pop)
#endif
#endif /* __PACK_H__ */