Add <stdalign.h> to c.h
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 19 Nov 2025 07:02:05 +0000 (08:02 +0100)
committerPeter 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

index cb8a38669bedbaba00956026f56e9c42e7f2fbf0..8e887bec0b208f959eafdef0a5e51a70e70635b3 100644 (file)
@@ -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>