mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-21 04:46:51 +00:00
2d0c904c88
If SDL isn't compiled in we shouldn't die unless we actually try using it. Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
29 lines
513 B
C
29 lines
513 B
C
#ifndef KVM__SDL_H
|
|
#define KVM__SDL_H
|
|
|
|
#include "kvm/util.h"
|
|
|
|
struct framebuffer;
|
|
|
|
#ifdef CONFIG_HAS_SDL
|
|
int sdl__init(struct kvm *kvm);
|
|
int sdl__exit(struct kvm *kvm);
|
|
#else
|
|
static inline int sdl__init(struct kvm *kvm)
|
|
{
|
|
if (kvm->cfg.sdl)
|
|
die("SDL support not compiled in. (install the SDL-dev[el] package)");
|
|
|
|
return 0;
|
|
}
|
|
static inline int sdl__exit(struct kvm *kvm)
|
|
{
|
|
if (kvm->cfg.sdl)
|
|
die("SDL support not compiled in. (install the SDL-dev[el] package)");
|
|
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif /* KVM__SDL_H */
|