Mercurial > hg > segmenter-vamp-plugin
comparison armadillo-2.4.4/include/armadillo_bits/undefine_conflicts.hpp @ 0:8b6102e2a9b0
Armadillo Library
author | maxzanoni76 <max.zanoni@eecs.qmul.ac.uk> |
---|---|
date | Wed, 11 Apr 2012 09:27:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8b6102e2a9b0 |
---|---|
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 |