You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
50 lines
1.5 KiB
15 years ago
|
|
||
|
/*
|
||
|
* Copyright (c) 1998, 1999 Tal Davidson. All rights reserved.
|
||
|
*
|
||
|
* compiler_defines.h (1 January 1999)
|
||
|
* by Tal Davidson (davidsont@bigfoot.com)
|
||
|
* This file is a part of "Artistic Style" - an indentater and reformatter
|
||
|
* of C++, C, and Java source files.
|
||
|
*
|
||
|
* The "Artistic Style" project, including all files needed to compile it,
|
||
|
* is free software; you can redistribute it and/or use it and/or modify it
|
||
|
* under the terms of EITHER the "Artistic License" OR
|
||
|
* the GNU General Public License as published by the Free Software Foundation;
|
||
|
* either version 2 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||
|
*
|
||
|
* You should have received a copy of EITHER the "Artistic License" or
|
||
|
* the GNU General Public License along with this program.
|
||
|
*/
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/*
|
||
|
* comment out the line below if your compiler does NOT understand NAMESPACES
|
||
|
*/
|
||
|
#define USES_NAMESPACE
|
||
|
|
||
|
|
||
|
#if defined(__GNUC__) && __GNUC__ < 3
|
||
|
// for G++ implementation of string.compare:
|
||
|
#define COMPARE(place, length, str) compare((str), (place), (length))
|
||
|
#else
|
||
|
// for standard implementation of string.compare:
|
||
|
#define COMPARE(place, length, str) compare((place), (length), (str))
|
||
|
#endif
|
||
|
|
||
|
|
||
|
// Fix by John A. McNamara
|
||
|
// Get rid of annoying MSVC warnings on debug builds about lengths of
|
||
|
// identifiers in template instantiations.
|
||
|
#ifdef _MSC_VER
|
||
|
#pragma warning( disable:4786 )
|
||
|
#endif
|
||
|
|