Recent

Author Topic: Does FPC GO32 define a unique Compiler Directive?  (Read 497 times)

Ozz_Nixon

  • Full Member
  • ***
  • Posts: 127
  • ~ email: nixon.ozz@aol.com or ozznixon@gmail.com
    • http://www.modernpascal.com/
Does FPC GO32 define a unique Compiler Directive?
« on: September 29, 2025, 01:09:22 am »
I have code that currently is compiled using DosPascal - and I am porting to GO32 target - just for compatibility tests.

However, I cannot reference $IFDEF FPC - I need to be able to drop a couple USES UNITS $IFDEF GO32 - but, that does not exist. :-(


Thanks a Million!
Ozz
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

Awkward

  • Full Member
  • ***
  • Posts: 154
Re: Does FPC GO32 define a unique Compiler Directive?
« Reply #1 on: September 29, 2025, 06:58:31 am »
You must check programmes guide. Appendix
It gives defines for go32v2  as GO32V2 or DPMI 

PascalDragon

  • Hero Member
  • *****
  • Posts: 6263
  • Compiler Developer
Re: Does FPC GO32 define a unique Compiler Directive?
« Reply #2 on: September 29, 2025, 08:57:41 pm »
However, I cannot reference $IFDEF FPC - I need to be able to drop a couple USES UNITS $IFDEF GO32 - but, that does not exist. :-(

Why can't you check for the FPC define?

As Awkward said, for the i386-go32v2 target the define is GO32V2.

 

TinyPortal © 2005-2018