Skip to content
Snippets Groups Projects
Commit 9365455c authored by Brad King's avatar Brad King
Browse files

zstd: Fix compilation with Oracle Studio compiler on Solaris

The compiler does not have `<stdalign.h>`, but does have `_Alignof`:

* https://docs.oracle.com/cd/E77782_01/html/E77788/gnxfh.html#OSSCGgnyfx
parent 2ee2aa70
No related branches found
No related tags found
No related merge requests found
......@@ -265,6 +265,10 @@
* due to a limitation in the kernel source generator */
# define ZSTD_ALIGNOF(T) __alignof(T)
# elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
/* Oracle Studio */
# define ZSTD_ALIGNOF(T) _Alignof(T)
# elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
/* C11 support */
# include <stdalign.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment