pshpack1.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 1999 Patrik Stridvall
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #if defined(__WINE_PSHPACK_H3)
  19. /* Depth > 3 */
  20. # error "Alignment nesting > 3 is not supported"
  21. #else
  22. # if !defined(__WINE_PSHPACK_H)
  23. # define __WINE_PSHPACK_H 1
  24. /* Depth == 1 */
  25. # elif !defined(__WINE_PSHPACK_H2)
  26. # define __WINE_PSHPACK_H2 1
  27. /* Depth == 2 */
  28. # define __WINE_INTERNAL_POPPACK
  29. # include <poppack.h>
  30. # elif !defined(__WINE_PSHPACK_H3)
  31. # define __WINE_PSHPACK_H3 1
  32. /* Depth == 3 */
  33. # define __WINE_INTERNAL_POPPACK
  34. # include <poppack.h>
  35. # endif
  36. # if defined(_MSC_VER) && (_MSC_VER >= 800)
  37. # pragma warning(disable:4103)
  38. # endif
  39. # pragma pack(1)
  40. #endif