projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d3f623
)
Add <stdalign.h> to c.h
author
Peter Eisentraut
<peter@eisentraut.org>
Wed, 19 Nov 2025 07:02:05 +0000
(08:02 +0100)
committer
Peter Eisentraut
<peter@eisentraut.org>
Wed, 19 Nov 2025 07:18:25 +0000
(08:18 +0100)
This allows using the C11 constructs alignas and alignof (not done in
this patch).
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/
46f05236
-d4d4-4b4e-84d4-
faa500f14691
%40eisentraut.org
src/include/c.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/c.h
b/src/include/c.h
index cb8a38669bedbaba00956026f56e9c42e7f2fbf0..8e887bec0b208f959eafdef0a5e51a70e70635b3 100644
(file)
--- a/
src/include/c.h
+++ b/
src/include/c.h
@@
-60,6
+60,7
@@
/* System header files that should be available everywhere in Postgres */
#include <inttypes.h>
+#include <stdalign.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>