getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] (no subject)


From: Konstantinos Poulios
Subject: [Getfem-commits] (no subject)
Date: Fri, 12 Apr 2024 10:17:15 -0400 (EDT)

branch: master
commit 18e801fef4a0420d4e1b5903c17a90bc687c8f76
Author: Konstantinos Poulios <logari81@gmail.com>
AuthorDate: Fri Apr 12 16:13:46 2024 +0200

    Require relaxing overstrict security checks with MSVC
---
 src/gmm/gmm_std.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gmm/gmm_std.h b/src/gmm/gmm_std.h
index 3a2e4b13..c0ade0fc 100644
--- a/src/gmm/gmm_std.h
+++ b/src/gmm/gmm_std.h
@@ -60,6 +60,9 @@
 # define SECURE_SPRINTF2(S, l, st, p1, p2) sprintf_s(S, l, st, p1, p2)
 # define SECURE_SPRINTF4(S, l, st, p1, p2, p3, p4) sprintf_s(S, l, st, p1, p2, 
p3, p4)
 # define SECURE_STRDUP(s) _strdup(s)
+# ifndef _CRT_SECURE_NO_DEPRECATE
+#  error Add _CRT_SECURE_NO_DEPRECATE to your compilation options, Microsoft 
is overstrict (e.g. bans fopen) without offering portable alternatives
+# endif
 #else
 # define SECURE_NONCHAR_SSCANF sscanf
 # define SECURE_NONCHAR_FSCANF fscanf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]