Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-02

$ifdef win32 in clipbrd unit

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vincent Snijders

Could the $ifdef win32 switches be removed from the clipbrd unit, please?

IMHO all OS-dependent stuff addressed from LCL should be found in LCLLinux.

So move the following section to LCLLinux:
const
  { Predefined Clipboard Formats }
  CF_TEXT = 1;
  CF_BITMAP = 2;
  CF_METAFILEPICT = 3;

And replace
uses

  Classes, SysUtils {$IFDEF Win32} , Windows {$ENDIF};

with
uses

  Classes, SysUtils, LCLLinux;
These TODO's should be handled in LCLLinux, in which a API for clipboard support
must be added in the interface object.
  // TODO: use the Windows clipboard when compiling under Windows
  // TODO: use the Linux clipboard (??gpm??) when compiling under Linux
  // TODO: use OS's clipboard if available

If you don't agree, please tell me how I can compile lazarus on win32.

TIA,
Vincent Snijders

Reply by email