Changeset 1217


Ignore:
Timestamp:
Apr 12, 2012, 12:59:23 AM (11 years ago)
Author:
sam
Message:

math: do not use #pragma diagnostic push for GCC prior to 4.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/math/vector.h

    r1209 r1217  
    11711171 * Also we do this for the whole block of declarations, because GCC prior
    11721172 * to 4.6.3 does not appear to support _Pragma() inside a macro. */
    1173 #if defined __GNUC__ && (__GNUC__ >= 4)
     1173#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
    11741174#   pragma GCC diagnostic push
    11751175#   pragma GCC diagnostic ignored "-Wsign-compare"
     
    12861286#endif
    12871287
    1288 #if defined __GNUC__ && (__GNUC__ >= 4)
     1288#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
    12891289#   pragma GCC diagnostic pop
    12901290#elif defined _MSC_VER
Note: See TracChangeset for help on using the changeset viewer.