annotate loader/wine/pshpack2.h @ 16307:03cd6abe5664

avoid reading more than maxlen bytes. Has the sideeffect that the amount read will be close to maxlen instead of minlen as before.
author reimar
date Thu, 25 Aug 2005 19:46:20 +0000
parents 3b5f5d1c5041
children c98c9e7f3bd0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 #ifndef __WINE_PSHPACK_H
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 #define __WINE_PSHPACK_H 2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 //#pragma pack(2)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 #elif !defined(RC_INVOKED)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 #error "2 as alignment isn't supported by the compiler"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 #endif /* defined(__GNUC__) || defined(__SUNPRO_CC) ; !defined(RC_INVOKED) */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 #else /* !defined(__WINE_PSHPACK_H) */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 #error "Nested pushing of alignment isn't supported by the compiler"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 #endif /* !defined(__WINE_PSHPACK_H) */