STXXL  1.4-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
deprecated.h
Go to the documentation of this file.
1 /***************************************************************************
2  * include/stxxl/bits/deprecated.h
3  *
4  * Part of the STXXL. See http://stxxl.sourceforge.net
5  *
6  * Copyright (C) 2008-2009 Andreas Beckmann <[email protected]>
7  * Copyright (C) 2013 Timo Bingmann <[email protected]>
8  *
9  * Distributed under the Boost Software License, Version 1.0.
10  * (See accompanying file LICENSE_1_0.txt or copy at
11  * http://www.boost.org/LICENSE_1_0.txt)
12  **************************************************************************/
13 
14 #ifndef STXXL_DEPRECATED_HEADER
15 #define STXXL_DEPRECATED_HEADER
16 
17 #include <stxxl/bits/config.h>
18 
19 // deprecated functions
20 
21 #if STXXL_NO_DEPRECATED
22 // dont issue deprecated warnings for forced instantiation tests -tb
23  #define STXXL_DEPRECATED(x) x
24 #elif STXXL_MSVC
25  #define STXXL_DEPRECATED(x) __declspec(deprecated) x
26 #elif defined(__GNUG__) && ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100) < 30400)
27 // no __attribute__ ((__deprecated__)) in GCC 3.3
28  #define STXXL_DEPRECATED(x) x
29 #else
30  #define STXXL_DEPRECATED(x) x __attribute__ ((__deprecated__))
31 #endif
32 
33 #endif // !STXXL_DEPRECATED_HEADER
34 // vim: et:ts=4:sw=4