Code: Select all
00063 // Detect macros for min / max and undefine (with a warning where possible)
00064 #if defined(max)
00065 # if defined(_MSC_VER)
00066 # pragma message("Macro defintion of max detected - undefining")
00067 # elif defined (__GNUC__)
00068 # warning ("Macro defintion of max detected - undefining")
00069 # endif
00070 # undef max
00071 #endif
00072 #if defined(min)
00073 # if defined(_MSC_VER)
00074 # pragma message("Macro defintion of min detected - undefining")
00075 # elif defined (__GNUC__)
00076 # warning ("Macro defintion of min detected - undefining")
00077 # endif
00078 # undef min
00079 #endif
1st: What is a "defintion"?
2nd: Why am I getting this message exactly? I don't know when this check was added, but I didn't get the warnings before.. What could I have changed to start defining min and max?
Just curious..
TIA!
Alex