Vaucanson  1.4.1
system.hh
Go to the documentation of this file.
1 // system.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 The Vaucanson Group.
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
11 //
12 // The complete GNU General Public Licence Notice can be found as the
13 // `COPYING' file in the root directory.
14 //
15 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
16 //
17 #ifndef VCSN_CONFIG_SYSTEM_HH
18 # define VCSN_CONFIG_SYSTEM_HH
19 
34 # ifdef HAVE_PRETTY_FUNCTION
35 # define PRETTY_FUNCTION() __PRETTY_FUNCTION__
36 # else
37 # define PRETTY_FUNCTION() static_cast<const char*>(0)
38 # endif
39 
40 # ifndef VCSN_INTERNAL_IGNORE_PCONF_HH
41 # include <vaucanson/config/pconf.hh>
42 # endif
43 
44 # include <vaucanson/config/math.hh>
45 
46 # if (defined __GNUC__) && (__GNUC__ < 3)
47 # include <stl_config.h>
48 # undef __STL_BEGIN_RELOPS_NAMESPACE
49 # define __STL_BEGIN_RELOPS_NAMESPACE namespace rel_ops {
50 # undef __STL_END_RELOPS_NAMESPACE
51 # define __STL_END_RELOPS_NAMESPACE }
52 # define __STL_USE_NAMESPACES
53 # endif
54 
55 // Set VCSN_NDEBUG if NDEBUG is defined.
56 # ifdef NDEBUG
57 # define VCSN_NDEBUG 1
58 # endif
59 
60 // FIXME: these should be tested
61 
62 # if (defined __GNUC__)
63 # define XUNUSED(X) X __attribute__ ((__unused__))
64 # else
65 # define XUNUSED(X) /* unused */
66 # endif
67 
69 # define VAUCANSON 1
70 
71 #endif // ! VCSN_CONFIG_SYSTEM_HH