diff options
Diffstat (limited to 'src/mesa/state_tracker/st_vdpau.h')
-rw-r--r-- | src/mesa/state_tracker/st_vdpau.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_vdpau.h b/src/mesa/state_tracker/st_vdpau.h index 59c744305cf..6f4d46091f2 100644 --- a/src/mesa/state_tracker/st_vdpau.h +++ b/src/mesa/state_tracker/st_vdpau.h @@ -36,7 +36,12 @@ struct dd_function_table; +#ifdef HAVE_ST_VDPAU extern void st_init_vdpau_functions(struct dd_function_table *functions); +#else +static inline void +st_init_vdpau_functions(struct dd_function_table *functions) {} +#endif #endif /* ST_VDPAU_H */ |