Chris@49: // Copyright (C) 2008-2011 NICTA (www.nicta.com.au) Chris@49: // Copyright (C) 2008-2011 Conrad Sanderson Chris@49: // Chris@49: // This Source Code Form is subject to the terms of the Mozilla Public Chris@49: // License, v. 2.0. If a copy of the MPL was not distributed with this Chris@49: // file, You can obtain one at http://mozilla.org/MPL/2.0/. Chris@49: Chris@49: Chris@49: Chris@49: #if defined(log2) Chris@49: #undef log2 Chris@49: Chris@49: #if defined(__GNUG__) Chris@49: #warning "detected 'log2' macro and undefined it" Chris@49: #elif defined(_MSC_VER) Chris@49: #pragma message ("detected 'log2' macro and undefined it") Chris@49: #endif Chris@49: #endif Chris@49: Chris@49: Chris@49: Chris@49: // Chris@49: // whoever defined macros with the names "min" and "max" should be permanently removed from the gene pool Chris@49: Chris@49: #if defined(min) Chris@49: #undef min Chris@49: Chris@49: #if defined(__GNUG__) Chris@49: #warning "detected 'min' macro and undefined it; you may wish to define NOMINMAX before including any windows header" Chris@49: #elif defined(_MSC_VER) Chris@49: #pragma message ("detected 'min' macro and undefined it; you may wish to define NOMINMAX before including any windows header") Chris@49: #endif Chris@49: #endif Chris@49: Chris@49: #if defined(max) Chris@49: #undef max Chris@49: Chris@49: #if defined(__GNUG__) Chris@49: #warning "detected 'max' macro and undefined it; you may wish to define NOMINMAX before including any windows header" Chris@49: #elif defined(_MSC_VER) Chris@49: #pragma message ("detected 'max' macro and undefined it; you may wish to define NOMINMAX before including any windows header") Chris@49: #endif Chris@49: #endif Chris@49: