ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] jasper 2.x: Препроцессор С и сравнение версии библиотеки
@ 2018-07-04 13:04 Sergey Afonin
  2018-07-04 13:15 ` Sergey Afonin
  0 siblings, 1 reply; 2+ messages in thread
From: Sergey Afonin @ 2018-07-04 13:04 UTC (permalink / raw)
  To: devel

Приветствую.

После обновления libjasper перестал собираться ZyGrib, ошибка и как
поправить описаны тут: http://www.zygrib.org/forum/viewtopic.php?f=3&t=1066
Фрагмент кода:

====
#ifdef JAS_1_700_2
    image.clrspc_=JAS_CLRSPC_SGRAY;         /* grayscale Image */
    image.cmprof_=0;.
#endif
    image.inmem_=1;
===

Речь про комментирование "image.inmem_=1". Я так понимаю, image.inmem_
в 2.x пропал совсем, но хочется оставить собираемость в бранчах.

В jas_config.h есть #define JAS_VERSION "2.0.14". Существует ли приём
для реализации чего-то вроде нижеследующего?

#ifdef JAS_VERSION < 2
    image.inmem_=1;
#endif

-- 
С уважением, Сергей Афонин.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel] jasper 2.x: Препроцессор С и сравнение версии библиотеки
  2018-07-04 13:04 [devel] jasper 2.x: Препроцессор С и сравнение версии библиотеки Sergey Afonin
@ 2018-07-04 13:15 ` Sergey Afonin
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Afonin @ 2018-07-04 13:15 UTC (permalink / raw)
  To: devel

On Wednesday 04 July 2018, Sergey Afonin wrote:

> #ifdef JAS_VERSION < 2

#if JAS_VERSION < 2 конечно же.


-- 
С уважением, Сергей Афонин.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-04 13:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-04 13:04 [devel] jasper 2.x: Препроцессор С и сравнение версии библиотеки Sergey Afonin
2018-07-04 13:15 ` Sergey Afonin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git