H
Henri =?ISO-8859-1?Q?Schom=E4cker?=
Hi folks,
I have a quite big class, which I want to use on UNIX-like systems and on
win32.
Until now, everything is absolutely portable. But now I need to read a
directory and use the os dependent functions.
So need to define and include different libraries and functions for both
OS-types. How can I do this using e.g. compiler #define's that all
compilers understand? And can I do this also inside of a function?
I'm using VC++ 6 on win32. Is there a special define set by the IDE like
e.g. __WIN32 or so that I could use?
With UNIX-like OS I'm using the typical combination of gcc, libtool and
autotools.
It's only the dir-read function so I don't want to write seperate
sourcefiles for both OS types.
Many thanks in advance,
yours Henri
I have a quite big class, which I want to use on UNIX-like systems and on
win32.
Until now, everything is absolutely portable. But now I need to read a
directory and use the os dependent functions.
So need to define and include different libraries and functions for both
OS-types. How can I do this using e.g. compiler #define's that all
compilers understand? And can I do this also inside of a function?
I'm using VC++ 6 on win32. Is there a special define set by the IDE like
e.g. __WIN32 or so that I could use?
With UNIX-like OS I'm using the typical combination of gcc, libtool and
autotools.
It's only the dir-read function so I don't want to write seperate
sourcefiles for both OS types.
Many thanks in advance,
yours Henri