Changeset 311e5e3ab7ee5981eaf187565472c0b942c7bc79
- Timestamp:
- 05/01/08 17:37:43
(3 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1209656263 +0300
- git-parent:
[0065092103e830b8d2e1e167c9630ee3e76d5e19]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1209656263 +0300
- Message:
Use macro for attribute((packed))
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r449fd28 |
r311e5e3 |
|
| 45 | 45 | #define _WAVEFORMATEX_ |
|---|
| 46 | 46 | typedef struct |
|---|
| 47 | | #ifdef HAVE_ATTRIBUTE_PACKED |
|---|
| 48 | | __attribute__((__packed__)) |
|---|
| 49 | | #endif |
|---|
| | 47 | ATTR_PACKED |
|---|
| 50 | 48 | _WAVEFORMATEX { |
|---|
| 51 | 49 | uint16_t wFormatTag; |
|---|
| … | … | |
| 62 | 60 | #define _WAVEFORMATEXTENSIBLE_ |
|---|
| 63 | 61 | typedef struct |
|---|
| 64 | | #ifdef HAVE_ATTRIBUTE_PACKED |
|---|
| 65 | | __attribute__((__packed__)) |
|---|
| 66 | | #endif |
|---|
| | 62 | ATTR_PACKED |
|---|
| 67 | 63 | _WAVEFORMATEXTENSIBLE { |
|---|
| 68 | 64 | WAVEFORMATEX Format; |
|---|
| … | … | |
| 80 | 76 | #define _WAVEHEADER_ |
|---|
| 81 | 77 | typedef struct |
|---|
| 82 | | #ifdef HAVE_ATTRIBUTE_PACKED |
|---|
| 83 | | __attribute__((__packed__)) |
|---|
| 84 | | #endif |
|---|
| | 78 | ATTR_PACKED |
|---|
| 85 | 79 | _WAVEHEADER { |
|---|
| 86 | 80 | uint32_t MainChunkID; |
|---|
| … | … | |
| 103 | 97 | #define _BITMAPINFOHEADER_ |
|---|
| 104 | 98 | typedef struct |
|---|
| 105 | | #ifdef HAVE_ATTRIBUTE_PACKED |
|---|
| 106 | | __attribute__((__packed__)) |
|---|
| 107 | | #endif |
|---|
| | 99 | ATTR_PACKED |
|---|
| 108 | 100 | { |
|---|
| 109 | 101 | uint32_t biSize; |
|---|
| … | … | |
| 121 | 113 | |
|---|
| 122 | 114 | typedef struct |
|---|
| 123 | | #ifdef HAVE_ATTRIBUTE_PACKED |
|---|
| 124 | | __attribute__((__packed__)) |
|---|
| 125 | | #endif |
|---|
| | 115 | ATTR_PACKED |
|---|
| 126 | 116 | { |
|---|
| 127 | 117 | BITMAPINFOHEADER bmiHeader; |
|---|
| … | … | |
| 133 | 123 | #define _RECT32_ |
|---|
| 134 | 124 | typedef struct |
|---|
| 135 | | #ifdef HAVE_ATTRIBUTE_PACKED |
|---|
| 136 | | __attribute__((__packed__)) |
|---|
| 137 | | #endif |
|---|
| | 125 | ATTR_PACKED |
|---|
| 138 | 126 | { |
|---|
| 139 | 127 | int left, top, right, bottom; |
|---|
| … | … | |
| 149 | 137 | #define _VIDEOINFOHEADER_ |
|---|
| 150 | 138 | typedef struct |
|---|
| 151 | | #ifdef HAVE_ATTRIBUTE_PACKED |
|---|
| 152 | | __attribute__((__packed__)) |
|---|
| 153 | | #endif |
|---|
| | 139 | ATTR_PACKED |
|---|
| 154 | 140 | { |
|---|
| 155 | 141 | RECT32 rcSource; |
|---|
| … | … | |
| 165 | 151 | #define _RGBQUAD_ |
|---|
| 166 | 152 | typedef struct |
|---|
| 167 | | #ifdef HAVE_ATTRIBUTE_PACKED |
|---|
| 168 | | __attribute__((__packed__)) |
|---|
| 169 | | #endif |
|---|
| | 153 | ATTR_PACKED |
|---|
| 170 | 154 | { |
|---|
| 171 | 155 | uint8_t rgbBlue; |
|---|
| … | … | |
| 179 | 163 | #define _TRUECOLORINFO_ |
|---|
| 180 | 164 | typedef struct |
|---|
| 181 | | #ifdef HAVE_ATTRIBUTE_PACKED |
|---|
| 182 | | __attribute__((__packed__)) |
|---|
| 183 | | #endif |
|---|
| | 165 | ATTR_PACKED |
|---|
| 184 | 166 | { |
|---|
| 185 | 167 | uint32_t dwBitMasks[3]; |
|---|
| … | … | |
| 191 | 173 | #define _VIDEOINFO_ |
|---|
| 192 | 174 | typedef struct |
|---|
| 193 | | #ifdef HAVE_ATTRIBUTE_PACKED |
|---|
| 194 | | __attribute__((__packed__)) |
|---|
| 195 | | #endif |
|---|
| | 175 | ATTR_PACKED |
|---|
| 196 | 176 | { |
|---|
| 197 | 177 | RECT32 rcSource; |
|---|
| r0065092 |
r311e5e3 |
|
| 781 | 781 | #endif |
|---|
| 782 | 782 | |
|---|
| | 783 | #ifdef HAVE_ATTRIBUTE_PACKED |
|---|
| | 784 | # define ATTR_PACKED __attribute__((__packed__)) |
|---|
| | 785 | #endif |
|---|
| | 786 | |
|---|
| 783 | 787 | /* */ |
|---|
| 784 | 788 | #define VLC_UNUSED(x) (void)(x) |
|---|