]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/loclass/fileutils.c
FIX: a shot at fixing the "_" underscore problem in fileutils.c. This one uses _ifde...
[proxmark3-svn] / client / loclass / fileutils.c
index deab3137a5704d798374430725f48661c3b07ff8..74c36a4dc52c94b57603ab12bf22199e91b0d539 100644 (file)
  * @return
  */
 int fileExists(const char *filename) {
+
+#ifdef _WIN32
        struct _stat fileStat;
        int result = _stat(filename, &fileStat);
+#else
+       struct stat fileStat;
+       int result = stat(filename, &fileStat);
+#endif
        return result == 0;
 }
 
Impressum, Datenschutz