Closed mihaioltean closed 4 months ago
In the tmpfileplus.c the _O_TEMPORARY flag is used, but the code does not compile due to the missing definition for this flag.
I have added my code:
#ifdef __BORLANDC__ #define _O_TEMPORARY 0x0040 #endif
It works, but I do not know if this is the correct way to fix this problem
To compile on C++Builder XE.
No code, but a compiler problem.
- XlsxWriter version: latest - OS:Win10 - compiler: C++Builder XE
No response
The tempfile comes from a vendored version of this code:
https://www.di-mgt.com.au/c_function_to_create_temp_file.html
So maybe that is the best place to confirm that the fix is correct.
Current behavior
In the tmpfileplus.c the _O_TEMPORARY flag is used, but the code does not compile due to the missing definition for this flag.
I have added my code:
It works, but I do not know if this is the correct way to fix this problem
Expected behavior
To compile on C++Builder XE.
Sample code to reproduce
Environment
Any other information
No response
OpenOffice and LibreOffice users