[GiNaC-devel] excompiler.cpp: unistd.h

Jan Rheinländer jrheinlaender at gmx.de
Thu Nov 3 12:13:52 CET 2016


Hi Richard,
> Hi Jan,
>
> On 11/01/2016 09:59 PM, Jan Rheinländer wrote:
>> #include <unistd.h> trips up compilation with MSVC. Is it really
>> required? I commented it out and the file compiled anyway.
> Where is the close() function declared, if not in <unistd.h>?

good question - but as I said, if I just comment out <unistd.h> it
compiles on MSVC and all checks pass successfully.
So maybe it needs a conditional:

#ifndef _MSC_VER
#include <unistd.h>
#endif



More information about the GiNaC-devel mailing list