~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to lib/astyle/compiler_defines.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
 * Copyright (c) 1998, 1999 Tal Davidson. All rights reserved.
 
4
 *
 
5
 * compiler_defines.h   (1 January 1999)
 
6
 * by Tal Davidson (davidsont@bigfoot.com)
 
7
 * This file is a part of "Artistic Style" - an indentater and reformatter
 
8
 * of C++, C, and Java source files.
 
9
 *
 
10
 * The "Artistic Style" project, including all files needed to compile it,
 
11
 * is free software; you can redistribute it and/or use it and/or modify it
 
12
 * under the terms of EITHER the "Artistic License" OR
 
13
 * the GNU General Public License as published by the Free Software Foundation;
 
14
 * either version 2 of the License, or (at your option) any later version.
 
15
 *
 
16
 * This program is distributed in the hope that it will be useful,
 
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
19
 *
 
20
 * You should have received a copy of EITHER the "Artistic License" or
 
21
 * the GNU General Public License along with this program.
 
22
 */
 
23
 
 
24
 
 
25
 
 
26
 
 
27
 
 
28
/*
 
29
 * comment out the line below if your compiler does NOT understand NAMESPACES
 
30
 */
 
31
#define USES_NAMESPACE
 
32
 
 
33
 
 
34
#if defined(__GNUC__) && __GNUC__ < 3
 
35
// for G++ implementation of string.compare:
 
36
#define COMPARE(place, length, str)       compare((str), (place), (length))
 
37
#else
 
38
// for standard implementation of string.compare:
 
39
#define COMPARE(place, length, str)       compare((place), (length), (str))
 
40
#endif
 
41
 
 
42
 
 
43
// Fix by John A. McNamara
 
44
// Get rid of annoying MSVC warnings on debug builds about lengths of
 
45
// identifiers in template instantiations.
 
46
#ifdef _MSC_VER
 
47
#pragma warning( disable:4786 )
 
48
#endif
 
49