s3d_backend.h (1401B)
1 /* Copyright (C) 2015-2023, 2026 |Méso|Star> (contact@meso-star.com) 2 * 3 * This file is part of Star-3D. 4 * 5 * Star-3D is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Star-3D is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Star-3D. If not, see <http://www.gnu.org/licenses/>. */ 17 18 #ifndef S3D_BACKEND_H 19 #define S3D_BACKEND_H 20 21 #include <rsys/rsys.h> /* COMPILER_<CL|GCC> */ 22 23 #ifdef COMPILER_CL 24 /* Structure was padded due to alignment specifier */ 25 #pragma warning(push) 26 #pragma warning(disable: 4324) 27 #elif defined COMPILER_GCC 28 /* Disable the "ISO C restricts enumerator values to range of 'int'" compiler 29 * warning in rtcore_common.h, line 293 (RTC_FEATURE_FLAG_ALL = 0xffffffff) */ 30 #pragma GCC diagnostic push 31 #pragma GCC diagnostic ignored "-Wpedantic" 32 #endif 33 34 #include <embree4/rtcore.h> 35 36 #ifdef COMPILER_CL 37 #pragma warning(pop) 38 #elif defined COMPILER_GCC 39 #pragma GCC diagnostic pop 40 #endif 41 42 #endif /* S3D_BACKEND_H */