Sign in Join

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

Mailing lists / lazarus / 2015-02

patch for rx.inc define linux_darwin definition

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

FreeMan

I added patch for rx using in osx
this is just add "Linux_Darwin" compiler directive in rx.inc file. If you want use this, You have to change "Linux_Darwin" with {$...... LINUX} I mean, change "LINUX" to "Linux_Darwin". original rx code just use compiler directive if linux .... else ... else for windows TRxDBLookupCombo when click button, grind create on behind form and can not access it.
-------------- next part --------------
Index: rx.inc
=================================================================== --- rx.inc (revision 3968)
+++ rx.inc (working copy)
@@ -58,3 +58,12 @@
{$ENDIF}

{.$DEFINE RxDBGridDepricatedProps}
+//freeman added
+{$IFDEF DARWIN}
+ {$DEFINE Linux_Darwin}
+{$ENDIF DARWIN}
+
+{$IFDEF LINUX}
+ {$DEFINE Linux_Darwin}
+{$ENDIF LINUX}
+

Reply by email

Marco van de Voort
to FreeMan
FreeMan wrote 7 lines
I added patch for rx using in osx this is just add "Linux_Darwin" compiler directive in rx.inc file. If you want use this, You have to change "Linux_Darwin" with {$...... LINUX} I mean, change "LINUX" to "Linux_Darwin". original rx code just use compiler directive if linux .... else ... else for windows TRxDBLookupCombo when click button, grind create on behind form and can not access it.

Better use:

{$ifdef unix} // FPC  all *nixes including Linux,Darwin, *BSD and Solaris
 {$define Linux_Darwin}
{$endif}
{$ifdef Linux}              // legacy Kylix
 {$define Linux_Darwin}
{$endif}

Reply by email

FreeMan
to Marco van de Voort

Yes, you right, thank you, no need define new variable, Just change in codes ifdef linux to ifdef unix is enough.

Marco van de Voort wrote 10 lines
Better use: {$ifdef unix} // FPC all *nixes including Linux,Darwin, *BSD and Solaris {$define Linux_Darwin} {$endif} {$ifdef Linux} // legacy Kylix {$define Linux_Darwin} {$endif}

Reply by email