gobo-eiffel / gobo

The Gobo Eiffel Project provides the Eiffel community with free and portable Eiffel tools and libraries.
https://sourceforge.net/projects/gobo-eiffel/
Other
59 stars 24 forks source link

Trouble with eif_file_mkstemp #56

Open ghost opened 1 year ago

ghost commented 1 year ago

This very function caused so much troubles for me. I'm trying to compile with BCC. _O_EXCL is defined in <fcntl.h> and _SH_DENYRW is defined in <share.h> and all of these headers are included (see line 2244 in gec9.c). For unknown reasons, the compiler always failed with error about _O_EXCL and _SH_DENYRW are undefined. I even used dirty hack by putting these lines just before the declaration of eif_file_mkstemp but it still failed with the same error.

#include <share.h>
#include <fcntl.h>

Please help @ebezault