From 46780b3a29ed44afbb59cbfa3932172acb6abdc1 Mon Sep 17 00:00:00 2001 From: blikblum Date: Sun, 14 Oct 2012 22:52:37 +0000 Subject: [PATCH] gtk2: use LCLVersion to make it compatible with Lazarus > 1.0 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2559 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- .../branches/4.8/include/intf/gtk2/vtgraphicsi.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/virtualtreeview-new/branches/4.8/include/intf/gtk2/vtgraphicsi.inc b/components/virtualtreeview-new/branches/4.8/include/intf/gtk2/vtgraphicsi.inc index 07e702d1f..67fa6e060 100644 --- a/components/virtualtreeview-new/branches/4.8/include/intf/gtk2/vtgraphicsi.inc +++ b/components/virtualtreeview-new/branches/4.8/include/intf/gtk2/vtgraphicsi.inc @@ -1,9 +1,9 @@ uses - gtk2def, gdk2, GTK2Proc, Cairo; + gtk2def, gdk2, GTK2Proc, Cairo, LCLVersion; {$MACRO ON} -{$ifndef LAZARUS_1_0} +{$if (lcl_major <> 1) or (lcl_minor <> 0)} {$define TGtk2DeviceContext:=TGtkDeviceContext} {$endif}