[Lazarus] cwstring in arm-linux

Henry Vermaak henry.vermaak at gmail.com
Mon Oct 3 14:18:17 CEST 2011


Hi list

In revision 31913, Felipe did this:

r31913 | sekelsenmat | 2011-08-08 12:23:08 +0100 (Mon, 08 Aug 2011) | 1 line

Fixes linking LCL-Android by disabling all links to libc in arm-linux

--- lcl/include/lcl_defines.inc	(revision 31912)
+++ lcl/include/lcl_defines.inc	(revision 31913)
@@ -1,2 +1,8 @@
  // Add defines here. This file should be included in all LCL units headers
-{$define UseCLDefault}
\ No newline at end of file
+{$define UseCLDefault}
+
+// For Android and other ARM-devices, otherwise the LCL will dependent 
on libc
+{$IFDEF ARM}{$IFDEF UNIX}
+  {$DEFINE DisableCWString}
+  {$DEFINE DisableIconv}
+{$ENDIF}{$ENDIF}

Could someone change this ifdef to ANDROID, or something other than ARM?

Henry




More information about the Lazarus mailing list