aboutsummaryrefslogtreecommitdiff
path: root/lib/include/stdcountof.h
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-07-16 04:52:10 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-08-30 06:36:40 +0200
commitce7339e80a11e0a8f466e779212ee328a7ddc9e5 (patch)
tree911ae7cce5f776dc6276a84d4e640092cf40d7f3 /lib/include/stdcountof.h
parentb7a8c045efab89c0fab0d3d1c678442c2b373066 (diff)
downloadzig-ce7339e80a11e0a8f466e779212ee328a7ddc9e5.tar.gz
zig-ce7339e80a11e0a8f466e779212ee328a7ddc9e5.zip
zig cc: update intrinsic headers to LLVM 21
Diffstat (limited to 'lib/include/stdcountof.h')
-rw-r--r--lib/include/stdcountof.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/include/stdcountof.h b/lib/include/stdcountof.h
new file mode 100644
index 0000000000..5714e6d6ff
--- /dev/null
+++ b/lib/include/stdcountof.h
@@ -0,0 +1,15 @@
+/*===---- stdcountof.h - Standard header for countof -----------------------===
+ *
+ * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+ * See https://llvm.org/LICENSE.txt for license information.
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+ *
+ *===-----------------------------------------------------------------------===
+ */
+
+#ifndef __STDCOUNTOF_H
+#define __STDCOUNTOF_H
+
+#define countof _Countof
+
+#endif /* __STDCOUNTOF_H */