home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / asty1153.zip / compiler_defines.h < prev    next >
C/C++ Source or Header  |  2002-04-11  |  2KB  |  50 lines

  1.  
  2. /*
  3.  * Copyright (c) 1998,1999,2000,2001,2002 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++, 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 the GNU General Public License as published 
  13.  * by the Free Software Foundation; either version 2 of the License, 
  14.  * 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 the GNU General Public
  21.  * 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.  
  50.