78 lines
2.1 KiB
C
78 lines
2.1 KiB
C
/***********************************************************************
|
|
*
|
|
* Copyright (C) 2005-2006 Novell, Inc. Inc. All Rights Reserved.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; version 2.1
|
|
* of the License.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, Novell, Inc.
|
|
*
|
|
* To contact Novell about this file by physical or electronic mail,
|
|
* you may find current contact information at www.novell.com.
|
|
*
|
|
***********************************************************************/
|
|
|
|
/* this header sets packing to 1 for different compilers */
|
|
|
|
#if defined (_MSC_VER) && !defined(__BORLANDC__)
|
|
# if (_MSC_VER > 600)
|
|
# pragma warning(disable:4103)
|
|
# endif
|
|
#elif defined (__BORLANDC__)
|
|
# if (__BORLANDC__ >= 0x500)
|
|
# pragma warn -pck
|
|
# endif
|
|
#endif
|
|
|
|
#if defined (__BORLANDC__)
|
|
# if (__BORLANDC__ >= 0x500)
|
|
# pragma pack(push)
|
|
# endif
|
|
#elif defined (__WATCOMC__)
|
|
# if (__WATCOMC__ >= 1050)
|
|
# pragma pack(push)
|
|
# endif
|
|
#elif defined (__MWERKS__)
|
|
# if (__MWERKS__ >= 0x2100)
|
|
# pragma pack(push)
|
|
# endif
|
|
#elif defined(__ECC__) || defined(__ECPP__)
|
|
# pragma pack(push)
|
|
#elif defined (_MSC_VER)
|
|
# if (_MSC_VER >= 900)
|
|
# pragma pack(push)
|
|
# endif
|
|
#endif
|
|
|
|
#if defined(N_PLAT_DOS)\
|
|
|| (defined(N_PLAT_MSW) && defined(N_ARCH_16) && !defined(N_PLAT_WNT))\
|
|
|| defined(N_PLAT_NLM)\
|
|
|| defined(N_PLAT_OS2)\
|
|
|| defined(N_PLAT_UNIX)\
|
|
|| defined(N_PACK_1)\
|
|
|| defined(N_FORCE_INT_16)
|
|
|
|
# if defined(__BORLANDC__)
|
|
# if (__BORLANDC__ < 0x500)
|
|
# pragma option -a-
|
|
# else
|
|
# pragma pack(1)
|
|
# endif
|
|
# else
|
|
# pragma pack(1)
|
|
# endif
|
|
|
|
#else
|
|
|
|
# pragma pack(4)
|
|
|
|
#endif
|