1/* 2 * This file is part of libplacebo. 3 * 4 * libplacebo is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * libplacebo is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with libplacebo. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18#ifndef LIBPLACEBO_CONFIG_H_ 19#define LIBPLACEBO_CONFIG_H_ 20 21// Increased any time the library changes in a fundamental/major way. 22#define PL_MAJOR_VER @majorver@ 23 24// Increased any time the API changes. (Note: Does not reset when PL_MAJOR_VER 25// is increased) 26#define PL_API_VER @apiver@ 27 28// Increased any time a fix is made to a given API version. 29#define PL_FIX_VER (pl_fix_ver()) 30 31// Friendly name (`git describe`) for the overall version of the library 32#define PL_VERSION (pl_version()) 33 34int pl_fix_ver(void); 35const char *pl_version(void); 36 37// Feature tests. These aren't described in further detail, but may be useful 38// for programmers wanting to programmatically check for feature support 39// in their compiled libplacebo versions. 40@extra_defs@ 41 42// Extra compiler-specific stuff 43#if defined(_MSC_VER) 44#define PL_DEPRECATED 45#else 46#define PL_DEPRECATED __attribute__((deprecated)) 47#endif 48 49#endif // LIBPLACEBO_CONTEXT_H_ 50