Skip to content

Commit

Permalink
Merge pull request #855 from whuaegeanse/fix_umfpack
Browse files Browse the repository at this point in the history
Fix UMFPACK compilation errors in Visual Studio 2017
  • Loading branch information
DrTimothyAldenDavis authored Aug 1, 2024
2 parents 115dfb4 + 938d847 commit 0aed651
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions UMFPACK/Source/umf_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@
#elif defined (HAVE_PRAGMA_IVDEP)
# define UMFPACK_IVDEP _Pragma("ivdep")
#elif defined (HAVE_PRAGMA_LOOP_IVDEP)
#if defined ( _MSC_VER )
# define UMFPACK_IVDEP __pragma(loop(ivdep))
#else
# define UMFPACK_IVDEP _Pragma("loop( ivdep )")
#endif
#else
# define UMFPACK_IVDEP
#endif
Expand All @@ -181,7 +185,11 @@
#elif defined (HAVE_PRAGMA_NOVECTOR)
# define UMFPACK_NOVECTOR _Pragma("novector")
#elif defined (HAVE_PRAGMA_LOOP_NO_VECTOR)
#if defined ( _MSC_VER )
# define UMFPACK_NOVECTOR __pragma(loop(no_vector))
#else
# define UMFPACK_NOVECTOR _Pragma("loop( no_vector )")
#endif
#else
# define UMFPACK_NOVECTOR
#endif
Expand Down

0 comments on commit 0aed651

Please sign in to comment.