undefine_conflicts.hpp
Go to the documentation of this file.
00001 // Copyright (C) 2008-2011 NICTA (www.nicta.com.au)
00002 // Copyright (C) 2008-2011 Conrad Sanderson
00003 // 
00004 // This file is part of the Armadillo C++ library.
00005 // It is provided without any warranty of fitness
00006 // for any purpose. You can redistribute this file
00007 // and/or modify it under the terms of the GNU
00008 // Lesser General Public License (LGPL) as published
00009 // by the Free Software Foundation, either version 3
00010 // of the License or (at your option) any later version.
00011 // (see http://www.opensource.org/licenses for more info)
00012 
00013 
00014 
00015 #if defined(log2)
00016   #undef log2
00017   
00018   #if defined(__GNUG__)
00019     #warning         "detected 'log2' macro and undefined it"
00020   #elif defined(_MSC_VER)
00021     #pragma message ("detected 'log2' macro and undefined it")
00022   #endif
00023 #endif
00024 
00025 
00026 
00027 // 
00028 // whoever defined macros with the names "min" and "max" should be permanently removed from the gene pool
00029 
00030 #if defined(min)
00031   #undef min
00032   
00033   #if defined(__GNUG__)
00034     #warning         "detected 'min' macro and undefined it; you may wish to define NOMINMAX before including any windows header"
00035   #elif defined(_MSC_VER)
00036     #pragma message ("detected 'min' macro and undefined it; you may wish to define NOMINMAX before including any windows header")
00037   #endif
00038 #endif
00039 
00040 #if defined(max)
00041   #undef max
00042   
00043   #if defined(__GNUG__)
00044     #warning         "detected 'max' macro and undefined it; you may wish to define NOMINMAX before including any windows header"
00045   #elif defined(_MSC_VER)
00046     #pragma message ("detected 'max' macro and undefined it; you may wish to define NOMINMAX before including any windows header")
00047   #endif
00048 #endif
00049 


armadillo_matrix
Author(s): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Jan 7 2014 11:42:06