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