Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
[SOLVED] {$IFDEF Windows} OR {$IFDEF Darwin}
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
scat bikes (inc)
by
speter
[
Today
at 04:38:11 am]
Effect of adding properti...
by
n7800
[
Today
at 04:13:36 am]
solution for installing F...
by
BradleySlavik
[
Today
at 02:37:22 am]
Lazarus seems to be makin...
by
n7800
[
Today
at 02:33:42 am]
CudaText editor (written ...
by
szlbz
[
Today
at 01:33:54 am]
Embedded qss stylesheets ...
by
jns
[
Today
at 12:43:03 am]
What was your first compu...
by
CM630
[January 13, 2026, 10:09:19 pm]
Dragging files to .app no...
by
Boleeman
[January 13, 2026, 10:06:09 pm]
Drag and Drop Files; onDr...
by
Boleeman
[January 13, 2026, 10:01:00 pm]
PngDrop: Reduce the size ...
by
Boleeman
[January 13, 2026, 09:50:19 pm]
Fantasy Worldbuilder; Pro...
by
Boleeman
[January 13, 2026, 09:45:56 pm]
Lazarus and Libre Office
by
Aruna
[January 13, 2026, 09:26:34 pm]
TSpeedButton qt6 styleshe...
by
big_M
[January 13, 2026, 09:23:24 pm]
StrToDateTime problems
by
Nicole
[January 13, 2026, 07:45:13 pm]
How to forward a Class in...
by
Hartmut
[January 13, 2026, 07:41:31 pm]
Additional Filedialog opt...
by
Hansaplast
[January 13, 2026, 07:39:28 pm]
Linked List Using Two Cla...
by
cdbc
[January 13, 2026, 06:34:17 pm]
set zero values not to b...
by
wp
[January 13, 2026, 05:58:41 pm]
Fast Canvas Library V1.05...
by
Gigatron
[January 13, 2026, 05:15:06 pm]
Locate current record aft...
by
1HuntnMan
[January 13, 2026, 03:52:59 pm]
How to set the Excel cell...
by
wp
[January 13, 2026, 02:10:13 pm]
RPNCalc in Lazarus
by
Thaddy
[January 13, 2026, 01:31:40 pm]
[SOLVED] Transparent back...
by
wp
[January 13, 2026, 11:19:10 am]
Why does FPC behave this ...
by
Thaddy
[January 13, 2026, 10:39:31 am]
Parametrized Access SQL Q...
by
Zvoni
[January 13, 2026, 09:45:53 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] {$IFDEF Windows} OR {$IFDEF Darwin} (Read 8521 times)
Fred vS
Hero Member
Posts: 3734
[SOLVED] {$IFDEF Windows} OR {$IFDEF Darwin}
«
on:
February 08, 2011, 09:26:18 pm »
Hello everybody.
How can i tell to compiler that something must be done if system is Windows
OR
Darwin.
With
{$IFDEF Windows} or {$IFDEF Darwin}
i get a error message....
I dont have finded the syntax for that...
Thanks
«
Last Edit: February 08, 2011, 10:15:42 pm by fredvs
»
Logged
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32, FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.
https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs
marcov
Administrator
Hero Member
Posts: 12592
FPC developer.
Re: {$IFDEF Windows} OR {$IFDEF Darwin}
«
Reply #1 on:
February 08, 2011, 10:02:12 pm »
{$if defined(windows) or defined(darwin)}
{$ifend}
Logged
Fred vS
Hero Member
Posts: 3734
Re: {$IFDEF Windows} OR {$IFDEF Darwin}
«
Reply #2 on:
February 08, 2011, 10:03:35 pm »
Thank you Marcov
Logged
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32, FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.
https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
[SOLVED] {$IFDEF Windows} OR {$IFDEF Darwin}
TinyPortal
© 2005-2018