Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 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 | |
Francois Gouget | 23a5b79 | 2000-10-19 20:20:07 +0000 | [diff] [blame] | 19 | #if defined(__WINE_PSHPACK_H3) |
Patrik Stridvall | c7a8dde | 1999-04-25 12:36:53 +0000 | [diff] [blame] | 20 | |
Francois Gouget | 23a5b79 | 2000-10-19 20:20:07 +0000 | [diff] [blame] | 21 | /* Depth > 3 */ |
| 22 | # error "Alignment nesting > 3 is not supported" |
Patrik Stridvall | c7a8dde | 1999-04-25 12:36:53 +0000 | [diff] [blame] | 23 | |
Francois Gouget | 23a5b79 | 2000-10-19 20:20:07 +0000 | [diff] [blame] | 24 | #else |
| 25 | |
| 26 | # if !defined(__WINE_PSHPACK_H) |
| 27 | # define __WINE_PSHPACK_H 2 |
| 28 | /* Depth == 1 */ |
| 29 | # elif !defined(__WINE_PSHPACK_H2) |
| 30 | # define __WINE_PSHPACK_H2 2 |
| 31 | /* Depth == 2 */ |
| 32 | # define __WINE_INTERNAL_POPPACK |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 33 | # include <poppack.h> |
Francois Gouget | 23a5b79 | 2000-10-19 20:20:07 +0000 | [diff] [blame] | 34 | # elif !defined(__WINE_PSHPACK_H3) |
| 35 | # define __WINE_PSHPACK_H3 2 |
| 36 | /* Depth == 3 */ |
| 37 | # define __WINE_INTERNAL_POPPACK |
Dimitrie O. Paun | 53f9c21 | 2003-08-28 21:43:34 +0000 | [diff] [blame] | 38 | # include <poppack.h> |
Francois Gouget | 23a5b79 | 2000-10-19 20:20:07 +0000 | [diff] [blame] | 39 | # endif |
| 40 | |
Daniel Marmier | a613de2 | 2003-09-30 00:33:47 +0000 | [diff] [blame] | 41 | # if defined(_MSC_VER) && (_MSC_VER >= 800) |
Patrik Stridvall | 395e8ba | 2002-02-05 18:09:29 +0000 | [diff] [blame] | 42 | # pragma warning(disable:4103) |
| 43 | # endif |
| 44 | |
Dimitrie O. Paun | 41d7518 | 2003-09-11 23:08:58 +0000 | [diff] [blame] | 45 | # pragma pack(2) |
Francois Gouget | 23a5b79 | 2000-10-19 20:20:07 +0000 | [diff] [blame] | 46 | |
| 47 | #endif |