]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/loclass/fileutils.c
This was resynthezised along with my hf-changes. Nothing changed though
[proxmark3-svn] / client / loclass / fileutils.c
index e2ca5ce52838133d9e8b6fff732aec30711a415f..206d9695c0e37f4f8decd168a667fb9d5208b5b4 100644 (file)
  * @return
  */
 int fileExists(const char *filename) {
+
+#ifdef _WIN32
+       struct _stat st;
+       int result = _stat(filename, &st);
+#else
        struct stat st;
        int result = stat(filename, &st);
+#endif
        return result == 0;
 }
 
Impressum, Datenschutz