We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bca29c1 commit a376f57Copy full SHA for a376f57
cmake/libutils/save_linker_opts.cc
@@ -30,15 +30,22 @@
30
31
#include <iostream>
32
#include <fstream>
33
+
34
+#ifdef WIN32
35
+#include <direct.h>
36
+#define GETCWD _getcwd
37
+#else
38
#include <unistd.h>
39
+#define GETCWD getcwd
40
+#endif
41
42
using namespace std;
43
44
int main(int argc, char* argv[])
45
{
46
char pwd[1024];
47
- if (!getcwd(pwd, sizeof(pwd)))
48
+ if (!GETCWD(pwd, sizeof(pwd)))
49
return 1;
50
51
//cout << "Got " << argc << " arguments" << endl;
0 commit comments