diff options
Diffstat (limited to 'common/align.h')
-rw-r--r-- | common/align.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/align.h b/common/align.h index e2dc81df..53a5806a 100644 --- a/common/align.h +++ b/common/align.h @@ -5,11 +5,8 @@ #include <stdalign.h> #endif -#ifndef alignas -#if defined(IN_IDE_PARSER) -/* KDevelop has problems with our align macro, so just use nothing for parsing. */ -#define alignas(x) -#elif defined(HAVE_C11_ALIGNAS) +#if !defined(alignas) && !defined(__cplusplus) +#if defined(HAVE_C11_ALIGNAS) #define alignas _Alignas #else /* NOTE: Our custom ALIGN macro can't take a type name like alignas can. For |