home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / os232.exe / INCLUDE / NPACKON.H < prev    next >
C/C++ Source or Header  |  1995-06-01  |  1KB  |  63 lines

  1. /* this header sets packing to 1 for different compilers */
  2.  
  3. #ifdef N_PACK_1
  4.  
  5. #if defined(__BORLANDC__)
  6.  
  7. #pragma option -a-
  8.  
  9. #elif defined(N_PLAT_UNIX)
  10.  
  11. #pragma pack(1)
  12.  
  13. #else
  14.  
  15. #pragma pack(1)
  16.  
  17. #endif
  18.  
  19. #else /* N_PACK_1 */
  20.  
  21. #if defined(N_PLAT_DOS) || (defined N_PLAT_MSW && defined N_ARCH_16 && !defined N_PLAT_WNT) || defined(N_PLAT_OS2)
  22.  
  23. #if defined(__BORLANDC__)
  24.  
  25. #pragma option -a-
  26.  
  27. #else
  28.   #if defined( _MSC_VER )
  29.      #if (_MSC_VER > 600)
  30.         #pragma warning(disable:4103)
  31.      #endif
  32.   #endif
  33. #pragma pack(1)
  34.  
  35. #endif
  36.  
  37. #elif defined N_PLAT_WNT && defined N_ARCH_32
  38.  
  39. /* For Windows NT default pack is 8 */
  40. #pragma warning(disable:4103)
  41.  
  42. #ifdef N_FORCE_INT_16
  43. /* Force packing to 1 for the thunk layer */
  44. #pragma pack(1)
  45. #else
  46. #pragma pack(4)
  47. #endif
  48.  
  49. #elif defined N_PLAT_MSW4 && defined N_ARCH_32
  50.  
  51. /* For Windows 95 default pack is 8 */
  52. #pragma warning(disable:4103)
  53.  
  54. #pragma pack(1)
  55.  
  56. #elif defined(N_PLAT_UNIX)
  57.  
  58. #pragma pack(1)
  59.  
  60. #endif
  61.  
  62. #endif /* N_PACK_1 */
  63.