Skip to content

Commit

Permalink
ensure the pragma is only applied to MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
John committed Mar 19, 2018
1 parent f0177eb commit de6681e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/internal/biginteger.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "../rapidjson.h"

#if defined(_MSC_VER) && defined(_M_AMD64)
#if defined(_MSC_VER) && !__INTEL_COMPILER && defined(_M_AMD64)
#include <intrin.h> // for _umul128
#pragma intrinsic(_umul128)
#endif
Expand Down

2 comments on commit de6681e

@dtrebilco
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be:
!defined(__INTEL_COMPILER)

@miloyip
Copy link
Collaborator

@miloyip miloyip commented on de6681e Mar 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be:
!defined(__INTEL_COMPILER)

Fixed in #1652

Please sign in to comment.