Make use of MBEDTLS_STATIC_ASSERT

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/library/debug.c b/library/debug.c
index 658d1c9..3e794b5 100644
--- a/library/debug.c
+++ b/library/debug.c
@@ -70,9 +70,7 @@
     char str[DEBUG_BUF_SIZE];
     int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
 
-#if defined(static_assert)
-    static_assert(DEBUG_BUF_SIZE >= 2)
-#endif
+    MBEDTLS_STATIC_ASSERT(DEBUG_BUF_SIZE >= 2, "DEBUG_BUF_SIZE too small");
 
     if (NULL == ssl              ||
         NULL == ssl->conf        ||