fix of failed compile on disabling ueberzug

This commit is contained in:
nova
2026-07-12 22:04:10 +02:00
parent e898ec3ba5
commit 230bac4d75
+5 -5
View File
@@ -108,14 +108,14 @@ void ueberzug_init(){
ueberzug = popen("ueberzug layer -s --no-cache ", "w"); ueberzug = popen("ueberzug layer -s --no-cache ", "w");
#endif #endif
} }
void ueberzug_close(){
images_clear();
pclose(ueberzug);
}
#endif
void file_preview_init(){ void file_preview_init(){
cookie_type = magic_open(MAGIC_MIME_TYPE); cookie_type = magic_open(MAGIC_MIME_TYPE);
cookie_description = magic_open(MAGIC_NONE); cookie_description = magic_open(MAGIC_NONE);
magic_load(cookie_type, NULL); magic_load(cookie_type, NULL);
magic_load(cookie_description, NULL); magic_load(cookie_description, NULL);
} }
void ueberzug_close(){
images_clear();
pclose(ueberzug);
}
#endif