]> git.cworth.org Git - fips/blobdiff - fips.h
Add explicit link to libpthread, to work around debugging issues
[fips] / fips.h
diff --git a/fips.h b/fips.h
index 306ea1bf1405efa51efa745bf78361d6cfdcdfcd..20653ff68b013e8363223f92135724f03491d379 100644 (file)
--- a/fips.h
+++ b/fips.h
@@ -39,4 +39,6 @@
 #define STRNCMP_LITERAL(var, literal) \
     strncmp ((var), (literal), sizeof (literal) - 1)
 
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
+
 #endif