VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Include/Library/CommonLib.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/Library/CommonLib.h')
-rw-r--r--Include/Library/CommonLib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/Library/CommonLib.h b/Include/Library/CommonLib.h
index 2c698d0..efc7738 100644
--- a/Include/Library/CommonLib.h
+++ b/Include/Library/CommonLib.h
@@ -28,6 +28,10 @@ https://opensource.org/licenses/LGPL-3.0
//////////////////////////////////////////////////////////////////////////
extern UINTN gCELine;
#define CE(ex) gCELine = __LINE__; if(EFI_ERROR(res = ex)) goto err
+
+#ifndef CSTATIC_ASSERT
+#define CSTATIC_ASSERT(b, name) typedef int StaticAssertFailed##name[b ? 1 : -1];
+#endif
//////////////////////////////////////////////////////////////////////////
// defines