Re: Ver 4.0 ifdef question

new topic     » goto parent     » topic index » view thread      » older message » newer message
bernie said...

How does the library know what platform it is running on without the platform() ???

You would have to set a variable, probably... or use platform(), even though it's deprecated. Something like:

integer myOS = UnknownOS 
 
ifdef WIN32 then 
  myOS = Win32 
else 
  myOS = Linux 
else 
  myOS = FreeBSD 
else 
  myOS = MacOSX 
end if 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu