Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:38:43

0001 /*
0002  * Copyright (c) CERN 2013-2017
0003  *
0004  * Copyright (c) Members of the EMI Collaboration. 2010-2013
0005  *  See  http://www.eu-emi.eu/partners for details on the copyright
0006  *  holders.
0007  *
0008  * Licensed under the Apache License, Version 2.0 (the "License");
0009  * you may not use this file except in compliance with the License.
0010  * You may obtain a copy of the License at
0011  *
0012  *    http://www.apache.org/licenses/LICENSE-2.0
0013  *
0014  * Unless required by applicable law or agreed to in writing, software
0015  * distributed under the License is distributed on an "AS IS" BASIS,
0016  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0017  * See the License for the specific language governing permissions and
0018  * limitations under the License.
0019  */
0020 
0021 #pragma once
0022 #ifndef GFAL_DEPRECATED_H_
0023 #define GFAL_DEPRECATED_H_
0024 
0025 #if !defined(__GFAL2_H_INSIDE__) && !defined(__GFAL2_BUILD__)
0026 #   warning "Direct inclusion of gfal2 headers is deprecated. Please, include only gfal_api.h or gfal_plugins_api.h"
0027 #endif
0028 
0029 
0030 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
0031 #define GFAL2_DEPRECATED(alt) __attribute__ ((deprecated("Use '" #alt "' instead")))
0032 #elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
0033 #define GFAL2_DEPRECATED(alt) __attribute__((__deprecated__))
0034 #elif defined(_MSC_VER) && (_MSC_VER >= 1300)
0035 #define GFAL2_DEPRECATED(alt) __declspec(deprecated)
0036 #else
0037 #warning "No deprecation rule for your compiler!"
0038 #endif
0039 
0040 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
0041 #define GFAL2_DEPRECATED_NOALT __attribute__ ((deprecated))
0042 #elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
0043 #define GFAL2_DEPRECATED_NOALT __attribute__((__deprecated__))
0044 #elif defined(_MSC_VER) && (_MSC_VER >= 1300)
0045 #define GFAL2_DEPRECATED_NOALT __declspec(deprecated)
0046 #else
0047 #warning "No deprecation rule for your compiler!"
0048 #endif
0049 
0050 #endif