git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1c27d16) | patch
Add definition pg_attribute_aligned() for MSVC
2022年9月21日 01:11:23 +0000 (10:11 +0900)
2022年9月21日 01:11:23 +0000 (10:11 +0900)
commit ec3c9cc202fb2749fce82483e6dc247cfe286cab
Add definition pg_attribute_aligned() for MSVC

Visual Studio 2015+ has support for a macro to control the alignement of
structures as of __declspec(align(#)), and this commit adds a definition
of pg_attribute_aligned() based on that. It happens that this was
already used in the implementation of atomics for MSVC. Note that there
is still no definition fo pg_attribute_packed(), so this does not impact
itemptr.h.

Author: James Coleman
Discussion: https://postgr.es/m/CAAaqYe-HbtZvR3msoMtk+hYW2S0e0OapzMW8icSMYTMA+mN8Aw@mail.gmail.com
config/c-compiler.m4 diff | blob | blame | history
configure diff | blob | blame | history
src/include/c.h diff | blob | blame | history
src/include/port/atomics/generic-msvc.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /