IFDEF for Android lazarus / 43-Android ---------------------------------------------------------------------- IndianaJones · 2012-01-04 17:05 Hi all, Is there an special definition (IFDEF) for Android platform? Thanks. ---------------------------------------------------------------------- Andru · 2012-01-04 18:12 Nope, because FreePascal doesn't support Android officially... So the only one solution is something like this(but this is a bad idea): Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$IF DEFINED(LINUX) and DEFINED(CPUARM)}  {$DEFINE ANDROID}{$IFEND}  or just using define ANDROID manually when you compile your project. ---------------------------------------------------------------------- felipemdc · 2012-01-04 19:29 Since the LPI needs to be different anyway for Android, just add -dANDROID in the Android LPI. The example project does that. ---------------------------------------------------------------------- IndianaJones · 2012-01-04 20:54 @Andru: I dont think it is a bad idea, if the source needs to be compiled under Windows,Linux,Mac,Android ...etc. I just read the screen metrics of the Android device, so that doesnt necessary for the other platforms. @Felipe: But that information only supports if the application runs only on Android platform. ---------------------------------------------------------------------- felipemdc · 2012-01-04 22:42 Quote from: IndianaJones on January 04, 2012, 09:54:20 pm@Felipe: But that information only supports if the application runs only on Android platform. Why? The example project runs in any operating system. ---------------------------------------------------------------------- IndianaJones · 2012-01-04 23:36 So you mean, -dAndroid option doesnt inhibit the compilation for the other platforms as a result What does 'Defines the symbol' mean?