STIR  6.2.0
deprecated.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2020, UCL
3  Copyright (C) 2020, UKRI
4  This file is part of STIR.
5  SPDX-License-Identifier: Apache-2.0
6  See STIR/LICENSE.txt for details
7 */
8 #ifndef __stir_deprecated_H__
9 #define __stir_deprecated_H__
10 
15 START_NAMESPACE_STIR
16 
18 #if defined(__GNUC__) || defined(__clang__)
19 # define STIR_DEPRECATED __attribute__((deprecated))
20 #elif defined(_MSC_VER)
21 # define STIR_DEPRECATED __declspec(deprecated)
22 #else
23 # pragma message("WARNING: You need to implement DEPRECATED for this compiler")
24 # define STIR_DEPRECATED
25 #endif
26 
27 END_NAMESPACE_STIR
28 
29 #endif // __stir_deprecated_H__