Any symbol that indicates the compiler?

Sysprogs forums Forums VisualGDB Any symbol that indicates the compiler?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11068
    jmkresse
    Participant

    Is there any symbol/environment variable available that I could refer to in a header file, for example, that would indicate that it is being compiled by g++ instead of, for example C++ under VisualStudio?

    #11070
    support
    Keymaster

    Hi,

    You can check for __GNUC__ or other GCC macros.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.