SERiF 0.0.1a
3+1D Stellar Structure and Evolution
Loading...
Searching...
No Matches
warning_control.h
Go to the documentation of this file.
1/* ***********************************************************************
2//
3// Copyright (C) 2025 -- The 4D-STAR Collaboration
4// File Author: Emily Boudreaux
5// Last Modified: March 20, 2025
6//
7// 4DSSE is free software; you can use it and/or modify
8// it under the terms and restrictions the GNU General Library Public
9// License version 3 (GPLv3) as published by the Free Software Foundation.
10//
11// 4DSSE 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.
14// See the GNU Library General Public License for more details.
15//
16// You should have received a copy of the GNU Library General Public License
17// along with this software; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// *********************************************************************** */
21#pragma once
22#if defined(__GNUC__) || defined(__clang__)
23 #define DEPRECATION_WARNING_OFF _Pragma("GCC diagnostic push") \
24 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
25 #define DEPRECATION_WARNING_ON _Pragma("GCC diagnostic pop")
26#elif defined(_MSC_VER)
27 #define DEPRECATION_WARNING_OFF __pragma(warning(push)) __pragma(warning(disable: 4996))
28 #define DEPRECATION_WARNING_ON __pragma(warning(pop))
29#else
30 #define DEPRECATION_WARNING_OFF
31 #define DEPRECATION_WARNING_ON
32#endif