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

Last change on this file since 1500 was 1500, checked in by Peter, 13 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
RevLine 
[1500]1#ifndef _theplu_yat_utility_config_public_
2#define _theplu_yat_utility_config_public_
[1292]3
[1383]4// @configure_input@
5
[1292]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
[1486]15  published by the Free Software Foundation; either version 3 of the
[1292]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
[1487]24  along with yat. If not, see <http://www.gnu.org/licenses/>.
[1292]25*/
26
27///
[1500]28/// \file utility/config_public.h
[1292]29///
30
[1500]31/// Define if compiler supports deprecated attribute, as in g++ 4.0
32#undef YAT_HAVE_GCC_DEPRECATED
[1321]33
[1292]34#endif
Note: See TracBrowser for help on using the repository browser.