Linux header files for Win32 typedefs like BOOL, LONG, and WCHAR

160 Views Asked by At

I'd like to compile this clone of xcopy as a linux binary. I commented out all the win32 include files, and now it complains about things like WCHAR, and LONG. These are simple typedefs. Is there a header for linux that deals with these things? I know as soon as I solve this issue I'll discover that the win32 headers actually get used for things. Then I'll have to actually get down to the hard work of porting things. For now I'd like to get past this hurdle.

1

There are 1 best solutions below

0
On

You might try compiling it with libwine as a step towards dropping the dependency entirely.

On Debian-based systems,

apt-get install libwine-dev