]> Nishi Git Mirror - gwion.git/commitdiff
:fire: windows func
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 14 Mar 2019 21:53:15 +0000 (22:53 +0100)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 14 Mar 2019 21:53:15 +0000 (22:53 +0100)
src/plug.c

index 027eb5a9a48e7da172f280654abb35f21fc4c149..3ceb98d53bdad478021b8e776cd09a1c33cbedce 100644 (file)
@@ -76,12 +76,12 @@ ANN PlugInfo* new_plug(const Vector list) {
     globfree(& results);
 #else
   _finddata_t filedata;
-  intptr_t file = _findfirst(c,&filedata);
+  intptr_t file = FindFirstFileA(c,&filedata);
   if(file != -1) {
     do plug_get(p, filedata.name);
-    while (_findnext(file,&filedata) == 0);
+    while(FindNextFile(file,&filedata) == 0);
   }
-  _findclose(file);
+  FindClose(file);
 #endif
   }
   return p;