Add partial TCC support for alignas and alignof
* but does appear to support alignas and alignof keywords in
* recent standard C++.
*
+ * TCC only supports alignas with a numeric argument like
+ * `alignas(4)`, but not `alignas(float)`.
+ *
* If stdalign.h is supported but heuristics in this file are
* insufficient to detect this, try including <stdaligh.h> manually
* or define HAVE_STDALIGN_H.
@@ -125,6 +128,12 @@ extern "C" {
#define _Alignas(t) __declspec (align(t))
#define _Alignof(t) __alignof(t)
+#elif defined(__TINYC__)
+
+/* Supports `_Alignas(integer-expression)`, but not `_Alignas(type)`. */
+#define _Alignas(t) __attribute__(aligned(t))
+#define _Alignof(t) __alignof__(t)
+
#else
#error please update pstdalign.h with support for current compiler and library
#endif
