From 7efaa73140b882dba3466a4b5fe47bf6c245c8cb Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 1 Jun 2020 22:28:28 +0000 Subject: [PATCH] fix build git-svn-id: svn://kolibrios.org@8017 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/TWB/img.h | 15 ++++++++++++++- programs/cmm/codeview/codeview.c | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/programs/cmm/TWB/img.h b/programs/cmm/TWB/img.h index fcba9ccdc4..66a4679d07 100644 --- a/programs/cmm/TWB/img.h +++ b/programs/cmm/TWB/img.h @@ -1,3 +1,4 @@ + struct _img { collection url; @@ -12,6 +13,8 @@ struct _img void draw(); }; +#ifndef NO_IMG + dword _img::add(dword _path, _x, _y) { char full_path[URL_SIZE]; @@ -131,4 +134,14 @@ void ImageCache::Images(dword left1, top1, width1) ImageCache ImgCache; -*/ \ No newline at end of file +*/ + +#else +dword _img::add(dword _path, _x, _y) {}; +void _img::clear() {}; +dword _img::current_url() {}; +bool _img::next_url() {}; +void _img::set_data(dword _data, _data_len) {}; +void _img::draw(int _x, _y, _start, _height) {}; + +#endif \ No newline at end of file diff --git a/programs/cmm/codeview/codeview.c b/programs/cmm/codeview/codeview.c index 1e10ae4198..457c146e65 100644 --- a/programs/cmm/codeview/codeview.c +++ b/programs/cmm/codeview/codeview.c @@ -1,5 +1,6 @@ #define MEMSIZE 4096 * 200 +#define NO_IMG true //libraries #include "..\lib\gui.h"