We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4680eb1 commit 238c3afCopy full SHA for 238c3af
src/lpython/semantics/python_ast_to_asr.cpp
@@ -34,17 +34,6 @@
34
#include <lpython/parser/parser.h>
35
#include <libasr/serialization.h>
36
37
-#include <sys/types.h>
38
-#include <sys/stat.h>
39
-#ifndef _WIN32
40
-#include <unistd.h>
41
-#endif
42
-
43
-#ifdef _WIN32
44
-#define stat _stat
45
46
47
48
namespace LFortran::LPython {
49
50
namespace CastingUtil {
src/lpython/utils.h
@@ -4,6 +4,16 @@
4
#include <string>
5
#include <libasr/utils.h>
6
7
+#include <sys/types.h>
8
+#include <sys/stat.h>
9
+#ifndef _WIN32
10
+#include <unistd.h>
11
+#endif
12
+
13
+#ifdef _WIN32
14
+#define stat _stat
15
16
17
namespace LFortran {
18
19
void get_executable_path(std::string &executable_path, int &dirname_length);
0 commit comments