source: pacpussensors/trunk/CanGateway/driver/kvaser/windows/extras/pshpack1.h@ 123

Last change on this file since 123 was 89, checked in by DHERBOMEZ Gérald, 9 years ago

Add KVASER CAN driver support for CanGateway component. Tested only for Windows.

File size: 1.3 KB
Line 
1/*
2** Copyright 2005 by KVASER AB, SWEDEN
3** WWW: http://www.kvaser.com
4**
5**
6** Description:
7** This file sets the struct alignment to 1 byte and saves the old
8** alignment. Many compilers provide a file similar to this one.
9** ---------------------------------------------------------------------------
10*/
11#if ! (defined(lint) || defined(_lint) || defined(RC_INVOKED))
12# if defined(_MSC_VER)
13# if ( _MSC_VER > 800 ) || defined(_PUSHPOP_SUPPORTED)
14# pragma warning(disable:4103)
15# if !(defined( MIDL_PASS )) || defined( __midl )
16# pragma pack(push)
17# endif
18# pragma pack(1)
19# else
20# pragma warning(disable:4103)
21# pragma pack(1)
22# endif
23# elif defined(__C166__)
24# pragma pack(1)
25# elif defined(__GCC__)
26# pragma pack(push, 1)
27# elif defined(__LCC__)
28# pragma pack(push, 1)
29# elif defined(__MWERKS__)
30# pragma pack(push, 1)
31# elif defined(__BORLANDC__)
32# if (__BORLANDC__ >= 0x460)
33# pragma nopackwarning
34# pragma pack(push, 1)
35# else
36# pragma option -a1
37# endif
38# else
39# error Unsupported compiler. See the compiler docs for more info on its alignment pragmas.
40# endif
41#endif /* ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) */
Note: See TracBrowser for help on using the repository browser.