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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
FPC 3.2.2 + Lazarus 3.4 C...
by
paule32
[
Today
at 11:18:59 pm]
FPC 3.2.2 using Result wi...
by
paule32
[
Today
at 11:16:52 pm]
FPC 3.2.2 - maximum Lengt...
by
paule32
[
Today
at 11:09:57 pm]
debugger not showing vari...
by
rohran
[
Today
at 11:05:01 pm]
[solved] macro for code ?
by
Zoran
[
Today
at 11:04:56 pm]
Knob Finger Spinner Graph...
by
circular
[
Today
at 10:15:44 pm]
Snaking ZigZag Curve: PRO...
by
Handoko
[
Today
at 10:12:04 pm]
Library: Embed DLL in EXE
by
Tomxe
[
Today
at 09:57:37 pm]
MVP made easier.
by
Hansvb
[
Today
at 09:45:27 pm]
Writing a TMemo widget fr...
by
paule32
[
Today
at 08:38:32 pm]
ChatGPT and algorithms
by
TBMan
[
Today
at 06:18:46 pm]
Deleting exe-file not wor...
by
d2010
[
Today
at 06:14:27 pm]
Named range
by
Thaddy
[
Today
at 05:22:17 pm]
Math.RoundTo incorrect so...
by
BeniBela
[
Today
at 04:07:40 pm]
2d "platform" game sugges...
by
TBMan
[
Today
at 03:47:29 pm]
Rain Simulator
by
Boleeman
[
Today
at 02:57:30 pm]
Turbo Pascal's default fo...
by
Thaddy
[
Today
at 02:34:28 pm]
Amigo programming languag...
by
paxscript
[
Today
at 02:07:13 pm]
More AI hype?
by
Joanna from IRC
[
Today
at 02:01:16 pm]
I didn't expect this
by
simone
[
Today
at 01:40:01 pm]
Reading axis range after ...
by
wp
[
Today
at 11:41:42 am]
Testing with SQLite3DataS...
by
CharlyTango
[
Today
at 10:55:38 am]
Detecting symbol correspo...
by
Tommi
[
Today
at 10:13:27 am]
[SOLVED] WebP images and ...
by
circular
[
Today
at 09:29:34 am]
[SOLVED] How to "Jump To"...
by
Markus
[
Today
at 09:24:57 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] {$IFDEF Windows} OR {$IFDEF Darwin} (Read 8239 times)
Fred vS
Hero Member
Posts: 3531
[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: 12152
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: 3531
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