]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Prevent MSVC from #defining min and max as macros.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 14 Jan 2014 16:29:20 +0000 (16:29 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 14 Jan 2014 16:29:20 +0000 (16:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@32205 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/config.h.in

index c0a1eda16ba632e5c5200118d41d884ad2ccd54f..757cf70c39c870f70467ead9be3ecb6843de9385 100644 (file)
@@ -1,7 +1,7 @@
 // ---------------------------------------------------------------------
 // $Id$
 //
-// Copyright (C) 2012 - 2013 by the deal.II authors
+// Copyright (C) 2012 - 2014 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
 #  pragma warning( disable : 4700 ) /* uninitialized local variable */
 #  pragma warning( disable : 4789 ) /* destination of memory copy is too small */
 #  pragma warning( disable : 4808 ) /* case 'value' is not a valid value for switch condition of type 'bool */
+
+/* Also make sure we don't let MS Windows headers define min/max as
+   macros, see http://support.microsoft.com/kb/143208 */
+#  define NOMINMAX
 #endif /*_MSC_VER*/
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.