| 1 | /* Pango - Internationalized text layout and rendering library |
| 2 | * Copyright (C) 1999 Red Hat Software |
| 3 | * Copyright (C) 2012 Ryan Lortie, Matthias Clasen and Emmanuele Bassi |
| 4 | * Copyright (C) 2016 Chun-wei Fan |
| 5 | * |
| 6 | * This library is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU Library General Public |
| 8 | * License as published by the Free Software Foundation; either |
| 9 | * version 2 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This library 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. See the GNU |
| 14 | * Library General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Lesser General Public |
| 17 | * License along with this library; if not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #ifndef __PANGO_VERSION_H__ |
| 21 | #define __PANGO_VERSION_H__ |
| 22 | |
| 23 | #include <pango/pango-features.h> |
| 24 | |
| 25 | #include <glib.h> |
| 26 | |
| 27 | #ifndef _PANGO_EXTERN |
| 28 | #define _PANGO_EXTERN extern |
| 29 | #endif |
| 30 | |
| 31 | #define PANGO_AVAILABLE_IN_ALL _PANGO_EXTERN |
| 32 | |
| 33 | /* XXX: Every new stable minor release bump should add a macro here */ |
| 34 | |
| 35 | /** |
| 36 | * PANGO_VERSION_1_2: |
| 37 | * |
| 38 | * A macro that evaluates to the 1.2 version of Pango, in a format |
| 39 | * that can be used by the C pre-processor. |
| 40 | * |
| 41 | * Since: 1.42 |
| 42 | */ |
| 43 | #define PANGO_VERSION_1_2 (G_ENCODE_VERSION (1, 2)) |
| 44 | |
| 45 | /** |
| 46 | * PANGO_VERSION_1_4: |
| 47 | * |
| 48 | * A macro that evaluates to the 1.4 version of Pango, in a format |
| 49 | * that can be used by the C pre-processor. |
| 50 | * |
| 51 | * Since: 1.42 |
| 52 | */ |
| 53 | #define PANGO_VERSION_1_4 (G_ENCODE_VERSION (1, 4)) |
| 54 | |
| 55 | /** |
| 56 | * PANGO_VERSION_1_6: |
| 57 | * |
| 58 | * A macro that evaluates to the 1.6 version of Pango, in a format |
| 59 | * that can be used by the C pre-processor. |
| 60 | * |
| 61 | * Since: 1.42 |
| 62 | */ |
| 63 | #define PANGO_VERSION_1_6 (G_ENCODE_VERSION (1, 6)) |
| 64 | |
| 65 | /** |
| 66 | * PANGO_VERSION_1_8: |
| 67 | * |
| 68 | * A macro that evaluates to the 1.8 version of Pango, in a format |
| 69 | * that can be used by the C pre-processor. |
| 70 | * |
| 71 | * Since: 1.42 |
| 72 | */ |
| 73 | #define PANGO_VERSION_1_8 (G_ENCODE_VERSION (1, 8)) |
| 74 | |
| 75 | /** |
| 76 | * PANGO_VERSION_1_10: |
| 77 | * |
| 78 | * A macro that evaluates to the 1.10 version of Pango, in a format |
| 79 | * that can be used by the C pre-processor. |
| 80 | * |
| 81 | * Since: 1.42 |
| 82 | */ |
| 83 | #define PANGO_VERSION_1_10 (G_ENCODE_VERSION (1, 10)) |
| 84 | |
| 85 | /** |
| 86 | * PANGO_VERSION_1_12: |
| 87 | * |
| 88 | * A macro that evaluates to the 1.12 version of Pango, in a format |
| 89 | * that can be used by the C pre-processor. |
| 90 | * |
| 91 | * Since: 1.42 |
| 92 | */ |
| 93 | #define PANGO_VERSION_1_12 (G_ENCODE_VERSION (1, 12)) |
| 94 | |
| 95 | /** |
| 96 | * PANGO_VERSION_1_14: |
| 97 | * |
| 98 | * A macro that evaluates to the 1.14 version of Pango, in a format |
| 99 | * that can be used by the C pre-processor. |
| 100 | * |
| 101 | * Since: 1.42 |
| 102 | */ |
| 103 | #define PANGO_VERSION_1_14 (G_ENCODE_VERSION (1, 14)) |
| 104 | |
| 105 | /** |
| 106 | * PANGO_VERSION_1_16: |
| 107 | * |
| 108 | * A macro that evaluates to the 1.16 version of Pango, in a format |
| 109 | * that can be used by the C pre-processor. |
| 110 | * |
| 111 | * Since: 1.42 |
| 112 | */ |
| 113 | #define PANGO_VERSION_1_16 (G_ENCODE_VERSION (1, 16)) |
| 114 | |
| 115 | /** |
| 116 | * PANGO_VERSION_1_18: |
| 117 | * |
| 118 | * A macro that evaluates to the 1.18 version of Pango, in a format |
| 119 | * that can be used by the C pre-processor. |
| 120 | * |
| 121 | * Since: 1.42 |
| 122 | */ |
| 123 | #define PANGO_VERSION_1_18 (G_ENCODE_VERSION (1, 18)) |
| 124 | |
| 125 | /** |
| 126 | * PANGO_VERSION_1_20: |
| 127 | * |
| 128 | * A macro that evaluates to the 1.20 version of Pango, in a format |
| 129 | * that can be used by the C pre-processor. |
| 130 | * |
| 131 | * Since: 1.42 |
| 132 | */ |
| 133 | #define PANGO_VERSION_1_20 (G_ENCODE_VERSION (1, 20)) |
| 134 | |
| 135 | /** |
| 136 | * PANGO_VERSION_1_22: |
| 137 | * |
| 138 | * A macro that evaluates to the 1.22 version of Pango, in a format |
| 139 | * that can be used by the C pre-processor. |
| 140 | * |
| 141 | * Since: 1.42 |
| 142 | */ |
| 143 | #define PANGO_VERSION_1_22 (G_ENCODE_VERSION (1, 22)) |
| 144 | |
| 145 | /** |
| 146 | * PANGO_VERSION_1_24: |
| 147 | * |
| 148 | * A macro that evaluates to the 1.24 version of Pango, in a format |
| 149 | * that can be used by the C pre-processor. |
| 150 | * |
| 151 | * Since: 1.42 |
| 152 | */ |
| 153 | #define PANGO_VERSION_1_24 (G_ENCODE_VERSION (1, 24)) |
| 154 | |
| 155 | /** |
| 156 | * PANGO_VERSION_1_26: |
| 157 | * |
| 158 | * A macro that evaluates to the 1.26 version of Pango, in a format |
| 159 | * that can be used by the C pre-processor. |
| 160 | * |
| 161 | * Since: 1.42 |
| 162 | */ |
| 163 | #define PANGO_VERSION_1_26 (G_ENCODE_VERSION (1, 26)) |
| 164 | |
| 165 | /** |
| 166 | * PANGO_VERSION_1_28: |
| 167 | * |
| 168 | * A macro that evaluates to the 1.28 version of Pango, in a format |
| 169 | * that can be used by the C pre-processor. |
| 170 | * |
| 171 | * Since: 1.42 |
| 172 | */ |
| 173 | #define PANGO_VERSION_1_28 (G_ENCODE_VERSION (1, 28)) |
| 174 | |
| 175 | /** |
| 176 | * PANGO_VERSION_1_30: |
| 177 | * |
| 178 | * A macro that evaluates to the 1.30 version of Pango, in a format |
| 179 | * that can be used by the C pre-processor. |
| 180 | * |
| 181 | * Since: 1.42 |
| 182 | */ |
| 183 | #define PANGO_VERSION_1_30 (G_ENCODE_VERSION (1, 30)) |
| 184 | |
| 185 | /** |
| 186 | * PANGO_VERSION_1_32: |
| 187 | * |
| 188 | * A macro that evaluates to the 1.32 version of Pango, in a format |
| 189 | * that can be used by the C pre-processor. |
| 190 | * |
| 191 | * Since: 1.42 |
| 192 | */ |
| 193 | #define PANGO_VERSION_1_32 (G_ENCODE_VERSION (1, 32)) |
| 194 | |
| 195 | /** |
| 196 | * PANGO_VERSION_1_34: |
| 197 | * |
| 198 | * A macro that evaluates to the 1.34 version of Pango, in a format |
| 199 | * that can be used by the C pre-processor. |
| 200 | * |
| 201 | * Since: 1.42 |
| 202 | */ |
| 203 | #define PANGO_VERSION_1_34 (G_ENCODE_VERSION (1, 34)) |
| 204 | |
| 205 | /** |
| 206 | * PANGO_VERSION_1_36: |
| 207 | * |
| 208 | * A macro that evaluates to the 1.36 version of Pango, in a format |
| 209 | * that can be used by the C pre-processor. |
| 210 | * |
| 211 | * Since: 1.42 |
| 212 | */ |
| 213 | #define PANGO_VERSION_1_36 (G_ENCODE_VERSION (1, 36)) |
| 214 | |
| 215 | /** |
| 216 | * PANGO_VERSION_1_38: |
| 217 | * |
| 218 | * A macro that evaluates to the 1.38 version of Pango, in a format |
| 219 | * that can be used by the C pre-processor. |
| 220 | * |
| 221 | * Since: 1.42 |
| 222 | */ |
| 223 | #define PANGO_VERSION_1_38 (G_ENCODE_VERSION (1, 38)) |
| 224 | |
| 225 | /** |
| 226 | * PANGO_VERSION_1_40: |
| 227 | * |
| 228 | * A macro that evaluates to the 1.40 version of Pango, in a format |
| 229 | * that can be used by the C pre-processor. |
| 230 | * |
| 231 | * Since: 1.42 |
| 232 | */ |
| 233 | #define PANGO_VERSION_1_40 (G_ENCODE_VERSION (1, 40)) |
| 234 | |
| 235 | /** |
| 236 | * PANGO_VERSION_1_42: |
| 237 | * |
| 238 | * A macro that evaluates to the 2.38 version of Pango, in a format |
| 239 | * that can be used by the C pre-processor. |
| 240 | * |
| 241 | * Since: 1.42 |
| 242 | */ |
| 243 | #define PANGO_VERSION_1_42 (G_ENCODE_VERSION (1, 42)) |
| 244 | |
| 245 | /* evaluates to the current stable version; for development cycles, |
| 246 | * this means the next stable target |
| 247 | */ |
| 248 | #if (PANGO_VERSION_MINOR % 2) |
| 249 | #define PANGO_VERSION_CUR_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR + 1)) |
| 250 | #else |
| 251 | #define PANGO_VERSION_CUR_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR)) |
| 252 | #endif |
| 253 | |
| 254 | /* evaluates to the previous stable version */ |
| 255 | #if (PANGO_VERSION_MINOR % 2) |
| 256 | #define PANGO_VERSION_PREV_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR - 1)) |
| 257 | #else |
| 258 | #define PANGO_VERSION_PREV_STABLE (G_ENCODE_VERSION (PANGO_VERSION_MAJOR, PANGO_VERSION_MINOR - 2)) |
| 259 | #endif |
| 260 | |
| 261 | /** |
| 262 | * PANGO_VERSION_MIN_REQUIRED: |
| 263 | * |
| 264 | * A macro that should be defined by the user prior to including |
| 265 | * the pango.h header. |
| 266 | * The definition should be one of the predefined Pango version |
| 267 | * macros: %PANGO_VERSION_1_2, %PANGO_VERSION_1_4,... |
| 268 | * |
| 269 | * This macro defines the earliest version of Pango that the package is |
| 270 | * required to be able to compile against. |
| 271 | * |
| 272 | * If the compiler is configured to warn about the use of deprecated |
| 273 | * functions, then using functions that were deprecated in version |
| 274 | * %PANGO_VERSION_MIN_REQUIRED or earlier will cause warnings (but |
| 275 | * using functions deprecated in later releases will not). |
| 276 | * |
| 277 | * Since: 1.42 |
| 278 | */ |
| 279 | /* If the package sets PANGO_VERSION_MIN_REQUIRED to some future |
| 280 | * PANGO_VERSION_X_Y value that we don't know about, it will compare as |
| 281 | * 0 in preprocessor tests. |
| 282 | */ |
| 283 | #ifndef PANGO_VERSION_MIN_REQUIRED |
| 284 | # define PANGO_VERSION_MIN_REQUIRED (PANGO_VERSION_CUR_STABLE) |
| 285 | #elif PANGO_VERSION_MIN_REQUIRED == 0 |
| 286 | # undef PANGO_VERSION_MIN_REQUIRED |
| 287 | # define PANGO_VERSION_MIN_REQUIRED (PANGO_VERSION_CUR_STABLE + 2) |
| 288 | #endif |
| 289 | |
| 290 | /** |
| 291 | * PANGO_VERSION_MAX_ALLOWED: |
| 292 | * |
| 293 | * A macro that should be defined by the user prior to including |
| 294 | * the glib.h header. |
| 295 | * The definition should be one of the predefined Pango version |
| 296 | * macros: %PANGO_VERSION_1_2, %PANGO_VERSION_1_4,... |
| 297 | * |
| 298 | * This macro defines the latest version of the Pango API that the |
| 299 | * package is allowed to make use of. |
| 300 | * |
| 301 | * If the compiler is configured to warn about the use of deprecated |
| 302 | * functions, then using functions added after version |
| 303 | * %PANGO_VERSION_MAX_ALLOWED will cause warnings. |
| 304 | * |
| 305 | * Unless you are using PANGO_CHECK_VERSION() or the like to compile |
| 306 | * different code depending on the Pango version, then this should be |
| 307 | * set to the same value as %PANGO_VERSION_MIN_REQUIRED. |
| 308 | * |
| 309 | * Since: 1.42 |
| 310 | */ |
| 311 | #if !defined (PANGO_VERSION_MAX_ALLOWED) || (PANGO_VERSION_MAX_ALLOWED == 0) |
| 312 | # undef PANGO_VERSION_MAX_ALLOWED |
| 313 | # define PANGO_VERSION_MAX_ALLOWED (PANGO_VERSION_CUR_STABLE) |
| 314 | #endif |
| 315 | |
| 316 | /* sanity checks */ |
| 317 | #if PANGO_VERSION_MIN_REQUIRED > PANGO_VERSION_CUR_STABLE |
| 318 | #error "PANGO_VERSION_MIN_REQUIRED must be <= PANGO_VERSION_CUR_STABLE" |
| 319 | #endif |
| 320 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_MIN_REQUIRED |
| 321 | #error "PANGO_VERSION_MAX_ALLOWED must be >= PANGO_VERSION_MIN_REQUIRED" |
| 322 | #endif |
| 323 | #if PANGO_VERSION_MIN_REQUIRED < PANGO_VERSION_1_2 |
| 324 | #error "PANGO_VERSION_MIN_REQUIRED must be >= PANGO_VERSION_1_2" |
| 325 | #endif |
| 326 | |
| 327 | /* These macros are used to mark deprecated functions in Pango headers, |
| 328 | * and thus have to be exposed in installed headers. |
| 329 | */ |
| 330 | #ifdef PANGO_DISABLE_DEPRECATION_WARNINGS |
| 331 | # define PANGO_DEPRECATED _PANGO_EXTERN |
| 332 | # define PANGO_DEPRECATED_FOR(f) _PANGO_EXTERN |
| 333 | # define PANGO_UNAVAILABLE(maj,min) _PANGO_EXTERN |
| 334 | #else |
| 335 | # define PANGO_DEPRECATED G_DEPRECATED _PANGO_EXTERN |
| 336 | # define PANGO_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) _PANGO_EXTERN |
| 337 | # define PANGO_UNAVAILABLE(maj,min) G_UNAVAILABLE(maj,min) _PANGO_EXTERN |
| 338 | #endif |
| 339 | |
| 340 | /* XXX: Every new stable minor release should add a set of macros here */ |
| 341 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_2 |
| 342 | # define PANGO_DEPRECATED_IN_1_2 PANGO_DEPRECATED |
| 343 | # define PANGO_DEPRECATED_IN_1_2_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 344 | #else |
| 345 | # define PANGO_DEPRECATED_IN_1_2 _PANGO_EXTERN |
| 346 | # define PANGO_DEPRECATED_IN_1_2_FOR(f) _PANGO_EXTERN |
| 347 | #endif |
| 348 | |
| 349 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_2 |
| 350 | # define PANGO_AVAILABLE_IN_1_2 PANGO_UNAVAILABLE(1, 2) |
| 351 | #else |
| 352 | # define PANGO_AVAILABLE_IN_1_2 _PANGO_EXTERN |
| 353 | #endif |
| 354 | |
| 355 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_4 |
| 356 | # define PANGO_DEPRECATED_IN_1_4 PANGO_DEPRECATED |
| 357 | # define PANGO_DEPRECATED_IN_1_4_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 358 | #else |
| 359 | # define PANGO_DEPRECATED_IN_1_4 _PANGO_EXTERN |
| 360 | # define PANGO_DEPRECATED_IN_1_4_FOR(f) _PANGO_EXTERN |
| 361 | #endif |
| 362 | |
| 363 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_4 |
| 364 | # define PANGO_AVAILABLE_IN_1_4 PANGO_UNAVAILABLE(1, 4) |
| 365 | #else |
| 366 | # define PANGO_AVAILABLE_IN_1_4 _PANGO_EXTERN |
| 367 | #endif |
| 368 | |
| 369 | |
| 370 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_6 |
| 371 | # define PANGO_DEPRECATED_IN_1_6 PANGO_DEPRECATED |
| 372 | # define PANGO_DEPRECATED_IN_1_6_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 373 | #else |
| 374 | # define PANGO_DEPRECATED_IN_1_6 _PANGO_EXTERN |
| 375 | # define PANGO_DEPRECATED_IN_1_6_FOR(f) _PANGO_EXTERN |
| 376 | #endif |
| 377 | |
| 378 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_6 |
| 379 | # define PANGO_AVAILABLE_IN_1_6 PANGO_UNAVAILABLE(1, 6) |
| 380 | #else |
| 381 | # define PANGO_AVAILABLE_IN_1_6 _PANGO_EXTERN |
| 382 | #endif |
| 383 | |
| 384 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_8 |
| 385 | # define PANGO_DEPRECATED_IN_1_8 PANGO_DEPRECATED |
| 386 | # define PANGO_DEPRECATED_IN_1_8_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 387 | #else |
| 388 | # define PANGO_DEPRECATED_IN_1_8 _PANGO_EXTERN |
| 389 | # define PANGO_DEPRECATED_IN_1_8_FOR(f) _PANGO_EXTERN |
| 390 | #endif |
| 391 | |
| 392 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_8 |
| 393 | # define PANGO_AVAILABLE_IN_1_8 PANGO_UNAVAILABLE(1, 8) |
| 394 | #else |
| 395 | # define PANGO_AVAILABLE_IN_1_8 _PANGO_EXTERN |
| 396 | #endif |
| 397 | |
| 398 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_10 |
| 399 | # define PANGO_DEPRECATED_IN_1_10 PANGO_DEPRECATED |
| 400 | # define PANGO_DEPRECATED_IN_1_10_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 401 | #else |
| 402 | # define PANGO_DEPRECATED_IN_1_10 _PANGO_EXTERN |
| 403 | # define PANGO_DEPRECATED_IN_1_10_FOR(f) _PANGO_EXTERN |
| 404 | #endif |
| 405 | |
| 406 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_10 |
| 407 | # define PANGO_AVAILABLE_IN_1_10 PANGO_UNAVAILABLE(1, 10) |
| 408 | #else |
| 409 | # define PANGO_AVAILABLE_IN_1_10 _PANGO_EXTERN |
| 410 | #endif |
| 411 | |
| 412 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_12 |
| 413 | # define PANGO_AVAILABLE_IN_1_12 PANGO_UNAVAILABLE(1, 12) |
| 414 | #else |
| 415 | # define PANGO_AVAILABLE_IN_1_12 _PANGO_EXTERN |
| 416 | #endif |
| 417 | |
| 418 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_12 |
| 419 | # define PANGO_DEPRECATED_IN_1_12 PANGO_DEPRECATED |
| 420 | # define PANGO_DEPRECATED_IN_1_12_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 421 | #else |
| 422 | # define PANGO_DEPRECATED_IN_1_12 _PANGO_EXTERN |
| 423 | # define PANGO_DEPRECATED_IN_1_12_FOR(f) _PANGO_EXTERN |
| 424 | #endif |
| 425 | |
| 426 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_14 |
| 427 | # define PANGO_AVAILABLE_IN_1_14 PANGO_UNAVAILABLE(1, 14) |
| 428 | #else |
| 429 | # define PANGO_AVAILABLE_IN_1_14 _PANGO_EXTERN |
| 430 | #endif |
| 431 | |
| 432 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_14 |
| 433 | # define PANGO_DEPRECATED_IN_1_14 PANGO_DEPRECATED |
| 434 | # define PANGO_DEPRECATED_IN_1_14_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 435 | #else |
| 436 | # define PANGO_DEPRECATED_IN_1_14 _PANGO_EXTERN |
| 437 | # define PANGO_DEPRECATED_IN_1_14_FOR(f) _PANGO_EXTERN |
| 438 | #endif |
| 439 | |
| 440 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_16 |
| 441 | # define PANGO_AVAILABLE_IN_1_16 PANGO_UNAVAILABLE(1, 16) |
| 442 | #else |
| 443 | # define PANGO_AVAILABLE_IN_1_16 _PANGO_EXTERN |
| 444 | #endif |
| 445 | |
| 446 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_16 |
| 447 | # define PANGO_DEPRECATED_IN_1_16 PANGO_DEPRECATED |
| 448 | # define PANGO_DEPRECATED_IN_1_16_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 449 | #else |
| 450 | # define PANGO_DEPRECATED_IN_1_16 _PANGO_EXTERN |
| 451 | # define PANGO_DEPRECATED_IN_1_16_FOR(f) _PANGO_EXTERN |
| 452 | #endif |
| 453 | |
| 454 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_18 |
| 455 | # define PANGO_DEPRECATED_IN_1_18 PANGO_DEPRECATED |
| 456 | # define PANGO_DEPRECATED_IN_1_18_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 457 | #else |
| 458 | # define PANGO_DEPRECATED_IN_1_18 _PANGO_EXTERN |
| 459 | # define PANGO_DEPRECATED_IN_1_18_FOR(f) _PANGO_EXTERN |
| 460 | #endif |
| 461 | |
| 462 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_18 |
| 463 | # define PANGO_AVAILABLE_IN_1_18 PANGO_UNAVAILABLE(1, 18) |
| 464 | #else |
| 465 | # define PANGO_AVAILABLE_IN_1_18 _PANGO_EXTERN |
| 466 | #endif |
| 467 | |
| 468 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_20 |
| 469 | # define PANGO_DEPRECATED_IN_1_20 PANGO_DEPRECATED |
| 470 | # define PANGO_DEPRECATED_IN_1_20_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 471 | #else |
| 472 | # define PANGO_DEPRECATED_IN_1_20 _PANGO_EXTERN |
| 473 | # define PANGO_DEPRECATED_IN_1_20_FOR(f) _PANGO_EXTERN |
| 474 | #endif |
| 475 | |
| 476 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_20 |
| 477 | # define PANGO_AVAILABLE_IN_1_20 PANGO_UNAVAILABLE(1, 20) |
| 478 | #else |
| 479 | # define PANGO_AVAILABLE_IN_1_20 _PANGO_EXTERN |
| 480 | #endif |
| 481 | |
| 482 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_22 |
| 483 | # define PANGO_DEPRECATED_IN_1_22 PANGO_DEPRECATED |
| 484 | # define PANGO_DEPRECATED_IN_1_22_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 485 | #else |
| 486 | # define PANGO_DEPRECATED_IN_1_22 _PANGO_EXTERN |
| 487 | # define PANGO_DEPRECATED_IN_1_22_FOR(f) _PANGO_EXTERN |
| 488 | #endif |
| 489 | |
| 490 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_22 |
| 491 | # define PANGO_AVAILABLE_IN_1_22 PANGO_UNAVAILABLE(1, 22) |
| 492 | #else |
| 493 | # define PANGO_AVAILABLE_IN_1_22 _PANGO_EXTERN |
| 494 | #endif |
| 495 | |
| 496 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_24 |
| 497 | # define PANGO_DEPRECATED_IN_1_24 PANGO_DEPRECATED |
| 498 | # define PANGO_DEPRECATED_IN_1_24_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 499 | #else |
| 500 | # define PANGO_DEPRECATED_IN_1_24 _PANGO_EXTERN |
| 501 | # define PANGO_DEPRECATED_IN_1_24_FOR(f) _PANGO_EXTERN |
| 502 | #endif |
| 503 | |
| 504 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_24 |
| 505 | # define PANGO_AVAILABLE_IN_1_24 PANGO_UNAVAILABLE(1, 24) |
| 506 | #else |
| 507 | # define PANGO_AVAILABLE_IN_1_24 _PANGO_EXTERN |
| 508 | #endif |
| 509 | |
| 510 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_26 |
| 511 | # define PANGO_DEPRECATED_IN_1_26 PANGO_DEPRECATED |
| 512 | # define PANGO_DEPRECATED_IN_1_26_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 513 | #else |
| 514 | # define PANGO_DEPRECATED_IN_1_26 _PANGO_EXTERN |
| 515 | # define PANGO_DEPRECATED_IN_1_26_FOR(f) _PANGO_EXTERN |
| 516 | #endif |
| 517 | |
| 518 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_26 |
| 519 | # define PANGO_AVAILABLE_IN_1_26 PANGO_UNAVAILABLE(1, 26) |
| 520 | #else |
| 521 | # define PANGO_AVAILABLE_IN_1_26 _PANGO_EXTERN |
| 522 | #endif |
| 523 | |
| 524 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_28 |
| 525 | # define PANGO_DEPRECATED_IN_1_28 PANGO_DEPRECATED |
| 526 | # define PANGO_DEPRECATED_IN_1_28_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 527 | #else |
| 528 | # define PANGO_DEPRECATED_IN_1_28 _PANGO_EXTERN |
| 529 | # define PANGO_DEPRECATED_IN_1_28_FOR(f) _PANGO_EXTERN |
| 530 | #endif |
| 531 | |
| 532 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_28 |
| 533 | # define PANGO_AVAILABLE_IN_1_28 PANGO_UNAVAILABLE(1, 28) |
| 534 | #else |
| 535 | # define PANGO_AVAILABLE_IN_1_28 _PANGO_EXTERN |
| 536 | #endif |
| 537 | |
| 538 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_30 |
| 539 | # define PANGO_DEPRECATED_IN_1_30 PANGO_DEPRECATED |
| 540 | # define PANGO_DEPRECATED_IN_1_30_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 541 | #else |
| 542 | # define PANGO_DEPRECATED_IN_1_30 _PANGO_EXTERN |
| 543 | # define PANGO_DEPRECATED_IN_1_30_FOR(f) _PANGO_EXTERN |
| 544 | #endif |
| 545 | |
| 546 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_30 |
| 547 | # define PANGO_AVAILABLE_IN_1_30 PANGO_UNAVAILABLE(1, 30) |
| 548 | #else |
| 549 | # define PANGO_AVAILABLE_IN_1_30 _PANGO_EXTERN |
| 550 | #endif |
| 551 | |
| 552 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_32 |
| 553 | # define PANGO_DEPRECATED_IN_1_32 PANGO_DEPRECATED |
| 554 | # define PANGO_DEPRECATED_IN_1_32_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 555 | #else |
| 556 | # define PANGO_DEPRECATED_IN_1_32 _PANGO_EXTERN |
| 557 | # define PANGO_DEPRECATED_IN_1_32_FOR(f) _PANGO_EXTERN |
| 558 | #endif |
| 559 | |
| 560 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_32 |
| 561 | # define PANGO_AVAILABLE_IN_1_32 PANGO_UNAVAILABLE(1, 32) |
| 562 | #else |
| 563 | # define PANGO_AVAILABLE_IN_1_32 _PANGO_EXTERN |
| 564 | #endif |
| 565 | |
| 566 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_34 |
| 567 | # define PANGO_DEPRECATED_IN_1_34 PANGO_DEPRECATED |
| 568 | # define PANGO_DEPRECATED_IN_1_34_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 569 | #else |
| 570 | # define PANGO_DEPRECATED_IN_1_34 _PANGO_EXTERN |
| 571 | # define PANGO_DEPRECATED_IN_1_34_FOR(f) _PANGO_EXTERN |
| 572 | #endif |
| 573 | |
| 574 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_34 |
| 575 | # define PANGO_AVAILABLE_IN_1_34 PANGO_UNAVAILABLE(1, 34) |
| 576 | #else |
| 577 | # define PANGO_AVAILABLE_IN_1_34 _PANGO_EXTERN |
| 578 | #endif |
| 579 | |
| 580 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_36 |
| 581 | # define PANGO_DEPRECATED_IN_1_36 PANGO_DEPRECATED |
| 582 | # define PANGO_DEPRECATED_IN_1_36_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 583 | #else |
| 584 | # define PANGO_DEPRECATED_IN_1_36 _PANGO_EXTERN |
| 585 | # define PANGO_DEPRECATED_IN_1_36_FOR(f) _PANGO_EXTERN |
| 586 | #endif |
| 587 | |
| 588 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_36 |
| 589 | # define PANGO_AVAILABLE_IN_1_36 PANGO_UNAVAILABLE(1, 36) |
| 590 | #else |
| 591 | # define PANGO_AVAILABLE_IN_1_36 _PANGO_EXTERN |
| 592 | #endif |
| 593 | |
| 594 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_38 |
| 595 | # define PANGO_DEPRECATED_IN_1_38 PANGO_DEPRECATED |
| 596 | # define PANGO_DEPRECATED_IN_1_38_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 597 | #else |
| 598 | # define PANGO_DEPRECATED_IN_1_38 _PANGO_EXTERN |
| 599 | # define PANGO_DEPRECATED_IN_1_38_FOR(f) _PANGO_EXTERN |
| 600 | #endif |
| 601 | |
| 602 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_38 |
| 603 | # define PANGO_AVAILABLE_IN_1_38 PANGO_UNAVAILABLE(1, 38) |
| 604 | #else |
| 605 | # define PANGO_AVAILABLE_IN_1_38 _PANGO_EXTERN |
| 606 | #endif |
| 607 | |
| 608 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_40 |
| 609 | # define PANGO_DEPRECATED_IN_1_40 PANGO_DEPRECATED |
| 610 | # define PANGO_DEPRECATED_IN_1_40_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 611 | #else |
| 612 | # define PANGO_DEPRECATED_IN_1_40 _PANGO_EXTERN |
| 613 | # define PANGO_DEPRECATED_IN_1_40_FOR(f) _PANGO_EXTERN |
| 614 | #endif |
| 615 | |
| 616 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_40 |
| 617 | # define PANGO_AVAILABLE_IN_1_40 PANGO_UNAVAILABLE(1, 40) |
| 618 | #else |
| 619 | # define PANGO_AVAILABLE_IN_1_40 _PANGO_EXTERN |
| 620 | #endif |
| 621 | |
| 622 | #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_42 |
| 623 | # define PANGO_DEPRECATED_IN_1_42 PANGO_DEPRECATED |
| 624 | # define PANGO_DEPRECATED_IN_1_42_FOR(f) PANGO_DEPRECATED_FOR(f) |
| 625 | #else |
| 626 | # define PANGO_DEPRECATED_IN_1_42 _PANGO_EXTERN |
| 627 | # define PANGO_DEPRECATED_IN_1_42_FOR(f) _PANGO_EXTERN |
| 628 | #endif |
| 629 | |
| 630 | #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_42 |
| 631 | # define PANGO_AVAILABLE_IN_1_42 PANGO_UNAVAILABLE(1, 42) |
| 632 | #else |
| 633 | # define PANGO_AVAILABLE_IN_1_42 _PANGO_EXTERN |
| 634 | #endif |
| 635 | |
| 636 | #endif /* __PANGO_VERSION_H__ */ |
| 637 | |