forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitec3c9cc
committed
Add definition pg_attribute_aligned() for MSVC
Visual Studio 2015+ has support for a macro to control the alignement ofstructures as of __declspec(align(#)), and this commit adds a definitionof pg_attribute_aligned() based on that. It happens that this wasalready used in the implementation of atomics for MSVC. Note that thereis still no definition fo pg_attribute_packed(), so this does not impactitemptr.h.Author: James ColemanDiscussion:https://postgr.es/m/CAAaqYe-HbtZvR3msoMtk+hYW2S0e0OapzMW8icSMYTMA+mN8Aw@mail.gmail.com1 parent1c27d16 commitec3c9cc
File tree
4 files changed
+16
-1
lines changed- config
- src/include
- port/atomics
4 files changed
+16
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
| 142 | + | |
| 143 | + | |
142 | 144 |
| |
143 | 145 |
| |
144 | 146 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17462 | 17462 |
| |
17463 | 17463 |
| |
17464 | 17464 |
| |
| 17465 | + | |
| 17466 | + | |
17465 | 17467 |
| |
17466 | 17468 |
| |
17467 | 17469 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
184 | 195 |
| |
185 | 196 |
| |
186 | 197 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + | |
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
|
0 commit comments
Comments
(0)