]> granicus.if.org Git - re2c/commitdiff
Need to include <fcntl.h> with MSVC to get definitions of _O_CREAT, _O_EXCL and _O_RDWR.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 6 Mar 2019 08:43:53 +0000 (08:43 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 6 Mar 2019 08:43:53 +0000 (08:43 +0000)
re2c/src/util/temp_file.cc

index c62fa445439318fa81c4485b0202b06f6e6d2b6d..01457ad6aee734168bc6a45e540b1074706a043a 100644 (file)
@@ -24,6 +24,7 @@
     && defined(HAVE_FCNTL_H)
 
 // MSVC
+#include <fcntl.h>
 #include <io.h>
 #define OPEN(fn)   _open(fn, _O_CREAT | _O_EXCL | _O_RDWR, _S_IREAD | _S_IWRITE)
 #define FDOPEN(fd) _fdopen(fd, "w")