getfem-commits
[Top][All Lists]
Advanced

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

[Getfem-commits] [getfem-commits] branch master updated: Remove strict r


From: Konstantinos Poulios
Subject: [Getfem-commits] [getfem-commits] branch master updated: Remove strict requirement for MSVC flag
Date: Thu, 07 Mar 2024 03:23:58 -0500

This is an automated email from the git hooks/post-receive script.

logari81 pushed a commit to branch master
in repository getfem.

The following commit(s) were added to refs/heads/master by this push:
     new 0ac615a1 Remove strict requirement for MSVC flag
0ac615a1 is described below

commit 0ac615a12c0fe19fa112e7c430fce7f357c4e3ed
Author: Konstantinos Poulios <logari81@gmail.com>
AuthorDate: Thu Mar 7 09:23:38 2024 +0100

    Remove strict requirement for MSVC flag
---
 src/gmm/gmm_std.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/gmm/gmm_std.h b/src/gmm/gmm_std.h
index 6ed41a32..3a2e4b13 100644
--- a/src/gmm/gmm_std.h
+++ b/src/gmm/gmm_std.h
@@ -60,9 +60,6 @@
 # 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 _SCL_SECURE_NO_DEPRECATE
-#   error Add the option /D_SCL_SECURE_NO_DEPRECATE to the compilation command
-# endif
 #else
 # define SECURE_NONCHAR_SSCANF sscanf
 # define SECURE_NONCHAR_FSCANF fscanf
@@ -313,6 +310,12 @@ typedef fixed_size_integer_generator<8>::uint_base_type 
uint64_type;
 # define ALWAYS_INLINE
 #endif
 
+#if defined(_MSC_VER) || defined(__INTEL_COMPILER)
+# define NOINLINE __declspec(noinline)
+#elif defined(__GNUC__) && !defined(__ICC)
+# define NOINLINE __attribute__((noinline))
+#endif
+
 }
 
   /* ******************************************************************** */



reply via email to

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