mbgtools-lx  4.2.8
use_pack.h
Go to the documentation of this file.
1 
2 /**************************************************************************
3  *
4  * $Id: use_pack.h 1.5 2012/10/12 12:40:01 martin REL_M $
5  *
6  * Copyright (c) Meinberg Funkuhren, Bad Pyrmont, Germany
7  *
8  * Description:
9  * Check the current compiler type to decide if pragma pack() is
10  * required to pack cross-platform data structures.
11  *
12  * -----------------------------------------------------------------------
13  * $Log: use_pack.h $
14  * Revision 1.5 2012/10/12 12:40:01 martin
15  * Removed temporary changes.
16  * Revision 1.4 2012/10/02 18:06:25 martin
17  * Temporary changes to test alignment under Linux/Sparc.
18  * Revision 1.3 2011/01/26 10:01:41 martin
19  * Provided a way to suppress packing of structures on a project base.
20  * Revision 1.2 2002/02/25 08:50:33 Andre
21  * query __ARM added, __SH2 removed
22  * Revision 1.1 2001/03/30 08:54:33Z MARTIN
23  * Initial revision
24  *
25  **************************************************************************/
26 
27 #ifndef _USE_PACK_H
28 #define _USE_PACK_H
29 
30 #if ( !defined( _C166 ) && \
31  !defined( _CC51 ) && \
32  !defined( __ARM ) )
33 
34  // _NO_USE_PACK can be defined for specific projects
35  // to avoid packing of structures.
36  #if ( !defined( _NO_USE_PACK ) )
37  #define _USE_PACK
38  #endif
39 
40 #endif
41 
42 #endif /* _USE_PACK_H */
43