The branch master has been updated
       via  12bd06cd6b7a67ae6b4f582b085555f62fbea93a (commit)
      from  ffb46830e2dfd3203044e6190f50a20fec50162d (commit)


- Log -----------------------------------------------------------------
commit 12bd06cd6b7a67ae6b4f582b085555f62fbea93a
Author: Richard Levitte <levi...@openssl.org>
Date:   Tue Aug 22 10:48:08 2017 +0200

    Fix the lack of isblank() with VMS C
    
    Reviewed-by: Rich Salz <rs...@openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/4216)

-----------------------------------------------------------------------

Summary of changes:
 test/ctype_internal_test.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/test/ctype_internal_test.c b/test/ctype_internal_test.c
index 0a30c3d..514db6b 100644
--- a/test/ctype_internal_test.c
+++ b/test/ctype_internal_test.c
@@ -13,6 +13,18 @@
 #include <ctype.h>
 #include <stdio.h>
 
+/*
+ * Even though the VMS C RTL claims to be C99 compatible, it's not entirely
+ * so far (C RTL version 8.4).  For the sake of these tests, we therefore
+ * define our own.
+ */
+#if defined(__VMS) && __CRTL_VER <= 80400000
+static int isblank(int c)
+{
+    return c == ' ' || c == '\t';
+}
+#endif
+
 static int test_ctype_chars(int n)
 {
     return TEST_int_eq(isalnum(n) != 0, ossl_isalnum(n) != 0)
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to