Skip to content

Commit

Permalink
Add proper restrict keyword for MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhale committed May 7, 2024
1 parent 49160fb commit 5a87c50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ffcx/codegeneration/ufcx.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ extern "C"
#define restrict
#elif defined(__GNUC__) || defined(__GNUG__)
#define restrict __restrict__
#elif defined(_MSC_VER)
#define restrict __restrict
#else
#define restrict
#endif // restrict
Expand Down

0 comments on commit 5a87c50

Please sign in to comment.