- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there an easy way (e.g. #ifdef) to distinguish between the Intel Compiler and MSVC in code? I don't want to use #ifdef _WIN32 because I assume both define that.
I need this check because Microsoft does not provide erf(x), which is in tgmath.h.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, you can use following. Those macros will be defined when using icl to build.
__ICL
__INTEL_COMPILER
Jennifer
__ICL
__INTEL_COMPILER
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - mcarey656
Is there an easy way (e.g. #ifdef) to distinguish between the Intel Compiler and MSVC in code? I don't want to use #ifdef _WIN32 because I assume both define that.
I need this check because Microsoft does not provide erf(x), which is in tgmath.h.
The problems in dealing with Microsoft non-support of common C99 features, such as
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - tim18
The problems in dealing with Microsoft non-support of common C99 features, such as , and the need to switch to C++ for some of them, are annoying. I guess listing the pre-definitions for the compilers you use is as good as anything available, where that works.
Great, thanks! And yes, Microsoft's non-support of C99 is one of the reasons I'm using Intel in the first place.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page