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
This commit is contained in:
blikblum
2012-10-14 22:52:37 +00:00
parent 7db931d3fc
commit 46780b3a29

View File

@ -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}