undefine_conflicts.hpp
Go to the documentation of this file.
1 // Copyright (C) 2008-2011 NICTA (www.nicta.com.au)
2 // Copyright (C) 2008-2011 Conrad Sanderson
3 //
4 // This file is part of the Armadillo C++ library.
5 // It is provided without any warranty of fitness
6 // for any purpose. You can redistribute this file
7 // and/or modify it under the terms of the GNU
8 // Lesser General Public License (LGPL) as published
9 // by the Free Software Foundation, either version 3
10 // of the License or (at your option) any later version.
11 // (see http://www.opensource.org/licenses for more info)
12 
13 
14 
15 #if defined(log2)
16  #undef log2
17 
18  #if defined(__GNUG__)
19  #warning "detected 'log2' macro and undefined it"
20  #elif defined(_MSC_VER)
21  #pragma message ("detected 'log2' macro and undefined it")
22  #endif
23 #endif
24 
25 
26 
27 //
28 // whoever defined macros with the names "min" and "max" should be permanently removed from the gene pool
29 
30 #if defined(min)
31  #undef min
32 
33  #if defined(__GNUG__)
34  #warning "detected 'min' macro and undefined it; you may wish to define NOMINMAX before including any windows header"
35  #elif defined(_MSC_VER)
36  #pragma message ("detected 'min' macro and undefined it; you may wish to define NOMINMAX before including any windows header")
37  #endif
38 #endif
39 
40 #if defined(max)
41  #undef max
42 
43  #if defined(__GNUG__)
44  #warning "detected 'max' macro and undefined it; you may wish to define NOMINMAX before including any windows header"
45  #elif defined(_MSC_VER)
46  #pragma message ("detected 'max' macro and undefined it; you may wish to define NOMINMAX before including any windows header")
47  #endif
48 #endif
49 


armadillo_matrix
Author(s):
autogenerated on Fri Apr 16 2021 02:31:59