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
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] {$IFDEF Windows} OR {$IFDEF Darwin} (Read 8670 times)
Fred vS
Hero Member
Posts: 3958
[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: 12984
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: 3958
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