[libcxx] r194891 - Fix-it suggestion for fixing min or max defines on Windows.

Yaron Keren yaron.keren at gmail.com
Fri Nov 15 15:41:01 PST 2013


Author: yrnkrn
Date: Fri Nov 15 17:41:01 2013
New Revision: 194891

URL: http://llvm.org/viewvc/llvm-project?rev=194891&view=rev
Log:
Fix-it suggestion for fixing min or max defines on Windows.


Modified:
    libcxx/trunk/include/__undef_min_max

Modified: libcxx/trunk/include/__undef_min_max
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__undef_min_max?rev=194891&r1=194890&r2=194891&view=diff
==============================================================================
--- libcxx/trunk/include/__undef_min_max (original)
+++ libcxx/trunk/include/__undef_min_max Fri Nov 15 17:41:01 2013
@@ -10,7 +10,8 @@
 
 #ifdef min
 #if defined(_MSC_VER) && ! defined(__clang__)
-_LIBCPP_WARNING("macro min is incompatible with C++.  #undefing min")
+_LIBCPP_WARNING("macro min is incompatible with C++.  Try #define NOMINMAX "
+                "before any Windows header. #undefing min")
 #else
 #warning: macro min is incompatible with C++.  #undefing min
 #endif
@@ -19,7 +20,8 @@ _LIBCPP_WARNING("macro min is incompatib
 
 #ifdef max
 #if defined(_MSC_VER) && ! defined(__clang__)
-_LIBCPP_WARNING("macro max is incompatible with C++.  #undefing max")
+_LIBCPP_WARNING("macro max is incompatible with C++.  Try #define NOMINMAX "
+                "before any Windows header. #undefing max")
 #else
 #warning: macro max is incompatible with C++.  #undefing max
 #endif





More information about the cfe-commits mailing list