Unified · Split
| @@ -1319,6 +1319,7 @@ HAVE_LIST=" · 1318 unmodified lines | ||
| 1319 | 1319 | nanosleep |
| 1320 | 1320 | poll_h |
| 1321 | 1321 | posix_memalign |
| 1322 | + pragma_deprecated | |
| 1322 | 1323 | rdtsc |
| 1323 | 1324 | sched_getaffinity |
| 1324 | 1325 | sdl |
| @@ -3393,6 +3394,11 @@ void foo(char * $restrict_keyword p); · 2068 unmodified lines | ||
| 3393 | 3394 | EOF |
| 3394 | 3395 | done |
| 3395 | 3396 | |
| 3397 | +check_cc <<EOF && enable pragma_deprecated | |
| 3398 | +_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") | |
| 3399 | +_Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"") | |
| 3400 | +EOF | |
| 3401 | + | |
| 3396 | 3402 | check_cc <<EOF && enable attribute_packed |
| 3397 | 3403 | struct { int x; } __attribute__((packed)) x; |
| 3398 | 3404 | EOF |
| @@ -61,6 +61,14 @@ · 60 unmodified lines | ||
| 61 | 61 | # define av_export |
| 62 | 62 | #endif |
| 63 | 63 | |
| 64 | +#if HAVE_PRAGMA_DEPRECATED | |
| 65 | +# define FF_DISABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") | |
| 66 | +# define FF_ENABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"") | |
| 67 | +#else | |
| 68 | +# define FF_DISABLE_DEPRECATION_WARNINGS | |
| 69 | +# define FF_ENABLE_DEPRECATION_WARNINGS | |
| 70 | +#endif | |
| 71 | + | |
| 64 | 72 | #ifndef INT_BIT |
| 65 | 73 | # define INT_BIT (CHAR_BIT * sizeof(int)) |
| 66 | 74 | #endif |