00001 00002 /* 00003 * Copyright (c) 1998,1999,2000,2001,2002 Tal Davidson. All rights reserved. 00004 * 00005 * compiler_defines.h (1 January 1999) 00006 * by Tal Davidson (davidsont@bigfoot.com) 00007 * This file is a part of "Artistic Style" - an indentater and reformatter 00008 * of C, C++, C# and Java source files. 00009 * 00010 * The "Artistic Style" project, including all files needed to compile it, 00011 * is free software; you can redistribute it and/or use it and/or modify it 00012 * under the terms of the GNU General Public License as published 00013 * by the Free Software Foundation; either version 2 of the License, 00014 * or (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00019 * 00020 * You should have received a copy of the GNU General Public 00021 * License along with this program. 00022 */ 00023 00024 00025 00026 00027 00028 /* 00029 * comment out the line below if your compiler does NOT understand NAMESPACES 00030 */ 00031 #define USES_NAMESPACE 00032 00033 00034 #if defined(__GNUC__) && __GNUC__ < 3 00035 // for G++ implementation of string.compare: 00036 #define COMPARE(place, length, str) compare((str), (place), (length)) 00037 #else 00038 // for standard implementation of string.compare: 00039 #define COMPARE(place, length, str) compare((place), (length), (str)) 00040 #endif 00041 00042 00043 // Fix by John A. McNamara 00044 // Get rid of annoying MSVC warnings on debug builds about lengths of 00045 // identifiers in template instantiations. 00046 #ifdef _MSC_VER 00047 #pragma warning( disable:4786 ) 00048 #endif 00049