source: trunk/yat/utility/config_public.h.in @ 1500

Last change on this file since 1500 was 1500, checked in by Peter, 15 years ago

Added structure to deprecate functions. I chose to use a gcc style,
and it is tested in configure whether the compiler supports it. If not
the deprecation has no effect. Using a deprecated function will cause
a compiler warning. In gcc the warning can be turned off with
'-Wno-deprecated'. Possibly we should turn off the warning by default,
so a user has to turn it on by defining
-DYAT_DISABLE_DEPRECATED...

fixes #367

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 997 bytes
Line 
1#ifndef _theplu_yat_utility_config_public_
2#define _theplu_yat_utility_config_public_
3
4// @configure_input@
5
6// $Id: config_public.h.in 1500 2008-09-15 18:47:37Z peter $
7
8/*
9  Copyright (C) 2008 Peter Johansson
10
11  This file is part of the yat library, http://trac.thep.lu.se/yat
12
13  The yat library is free software; you can redistribute it and/or
14  modify it under the terms of the GNU General Public License as
15  published by the Free Software Foundation; either version 3 of the
16  License, or (at your option) any later version.
17
18  The yat library is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  General Public License for more details.
22
23  You should have received a copy of the GNU General Public License
24  along with yat. If not, see <http://www.gnu.org/licenses/>.
25*/
26
27///
28/// \file utility/config_public.h
29///
30
31/// Define if compiler supports deprecated attribute, as in g++ 4.0
32#undef YAT_HAVE_GCC_DEPRECATED
33
34#endif
Note: See TracBrowser for help on using the repository browser.