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
FPC and Lazarus coding st...
by
Martin_fr
[
Today
at 08:07:08 pm]
function intersect in laz...
by
Sukram
[
Today
at 07:42:17 pm]
Debian removes FPC/Lazaru...
by
dsiders
[
Today
at 06:34:55 pm]
Status of FPC 3.4.0 or FP...
by
440bx
[
Today
at 05:10:03 pm]
LCL Web Native with D2Bri...
by
xinyiman
[
Today
at 04:52:10 pm]
Log in to web Data with U...
by
rvk
[
Today
at 03:23:29 pm]
Free Pascal for a small e...
by
devEric69
[
Today
at 02:51:51 pm]
Transparent Form: Some Th...
by
Boleeman
[
Today
at 02:34:08 pm]
Notetask 1.1.0 - Free cro...
by
AlexanderT
[
Today
at 02:33:56 pm]
Rolling releases Lazarus[...
by
marcov
[
Today
at 02:07:36 pm]
lazarus IDE anchordock ba...
by
szlbz
[
Today
at 12:53:12 pm]
Upload multipart POST req...
by
OH1KH
[
Today
at 11:53:17 am]
Ininside ProjectSession, ...
by
d2010
[
Today
at 10:34:50 am]
Recommendations for wasm3...
by
temp0
[
Today
at 03:47:38 am]
Lazarus for Windows on aa...
by
msintle
[
Today
at 01:02:01 am]
ListBox MeasureItem
by
jamie
[February 05, 2026, 11:02:02 pm]
Feature announcement: Fun...
by
PascalDragon
[February 05, 2026, 09:29:34 pm]
Improved FPC JSON-RPC sup...
by
PascalDragon
[February 05, 2026, 09:15:07 pm]
C-specific record functio...
by
440bx
[February 05, 2026, 08:38:23 pm]
What is a status of fpGUI...
by
inky
[February 05, 2026, 06:55:54 pm]
[SOLVED] How to scroll a ...
by
Hartmut
[February 05, 2026, 03:36:11 pm]
Default, Manual Initializ...
by
Thaddy
[February 05, 2026, 03:06:23 pm]
Does FreePascal have a WM...
by
CM630
[February 05, 2026, 01:02:14 pm]
Label collision on X axis...
by
PeterX
[February 05, 2026, 11:25:33 am]
how to run code in backgr...
by
CM630
[February 05, 2026, 10:16:31 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] {$IFDEF Windows} OR {$IFDEF Darwin} (Read 8565 times)
Fred vS
Hero Member
Posts: 3773
[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: 12630
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: 3773
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