source: pacpussensors/trunk/CanGateway/driver/kvaser/windows/extras/poppack.h@ 135

Last change on this file since 135 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 resets the struct alignment to the value
8** prevalent before pshpackN.h was included. Many compilers provide a
9** file similar to this one.
10** ---------------------------------------------------------------------------
11*/
12#if ! (defined(lint) || defined(_lint) || defined(RC_INVOKED))
13# if defined(_MSC_VER)
14# if ( _MSC_VER > 800 ) || defined(_PUSHPOP_SUPPORTED)
15# pragma warning(disable:4103)
16# if !(defined( MIDL_PASS )) || defined( __midl )
17# pragma pack(pop)
18# else
19# pragma pack()
20# endif
21# else
22# pragma warning(disable:4103)
23# pragma pack()
24# endif
25# elif defined(__C166__)
26# pragma pack()
27# elif defined(__GCC__)
28# pragma pack(pop)
29# elif defined(__LCC__)
30# pragma pack(pop)
31# elif defined(__MWERKS__)
32# pragma pack(pop)
33# elif defined(__BORLANDC__)
34# if (__BORLANDC__ >= 0x460)
35# pragma nopackwarning
36# pragma pack(pop)
37# else
38# pragma option -a.
39# endif
40# else
41# error Unsupported compiler.
42# endif
43#endif /* ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) */
Note: See TracBrowser for help on using the repository browser.