LIBINT 2.9.0
deprecated.h
1/*
2 * Copyright (C) 2004-2024 Edward F. Valeev
3 *
4 * This file is part of Libint library.
5 *
6 * Libint library is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * Libint library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with Libint library. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21#ifndef _libint2_include_libint2_util_deprecated_h_
22#define _libint2_include_libint2_util_deprecated_h_
23
24#ifndef DEPRECATED // avoid clashing with previous definitions
25#if __cplusplus >= 201402L
26#define DEPRECATED [[deprecated]]
27#elif defined(__GNUC__)
28#define DEPRECATED __attribute__((deprecated))
29#else
30#pragma message("WARNING: You need to implement DEPRECATED for this compiler")
31#define DEPRECATED
32#endif
33#endif // not defined(DEPRECATED)
34
35#endif /* header guard */