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.
/Dstrdup=_strdup
1 parent 50ad8d8 commit 366bcd5Copy full SHA for 366bcd5
implicit/include/runtime.c
@@ -241,14 +241,23 @@ wchar_t *wcsrchr(wchar_t *haystack, wchar_t needle){
241
// The sad side of it is that for now here is an ugly hack.
242
//
243
244
+#ifdef strdup
245
+#undef strdup
246
+#endif
247
__declspec(dllimport) char *_strdup(char *str);
248
char *strdup(char *str){ return _strdup(str); }
249
250
+#ifdef getcwd
251
+#undef getcwd
252
253
__declspec(dllimport) char *_getcwd(char *buffer, int maxlen);
254
char *getcwd(char *buffer, int maxlen){
255
return getcwd(buffer, maxlen);
256
}
257
258
+#ifdef rmdir
259
+#undef rmdir
260
261
__declspec(dllimport) int _rmdir(const char *dirname);
262
int rmdir(const char *dirname){
263
return _rmdir(dirname);
0 commit comments