OpenCBM
packon.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version
5  * 2 of the License, or (at your option) any later version.
6  *
7  * Copyright 2006 Spiro Trikaliotis
8  */
9 
17 #if (_MSC_VER >= 1200) // MSVC 6 or newer
18 
19  /*
20  * Disable warnings about included file changing packing level (C4103).
21  * That is the whole point of this file.
22  */
23  #pragma warning(disable: 4103)
24  #pragma pack(push, packonoff, 1)
25 
26 #elif (__GNUC__ >= 3)
27 
28  #pragma pack(1)
29 
30 #else
31 
32  #pragma error "Unknown compiler!"
33 
34 #endif