git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32621
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Return the type of an open file
WXDLLIMPEXP_BASE wxFileKind wxGetFileKind(int fd);
// Return the type of an open file
WXDLLIMPEXP_BASE wxFileKind wxGetFileKind(int fd);
-inline wxFileKind wxGetFileKind (FILE *fp) { return wxGetFileKind(fileno(fp)); }
+WXDLLIMPEXP_BASE wxFileKind wxGetFileKind(FILE *fp);
// compatibility defines, don't use in new code
#define wxDirExists wxPathExists
// compatibility defines, don't use in new code
#define wxDirExists wxPathExists
return wxFILE_KIND_DISK;
#else
return wxFILE_KIND_DISK;
#else
+ #define wxFILEKIND_STUB
(void)fd;
return wxFILE_KIND_DISK;
#endif
}
(void)fd;
return wxFILE_KIND_DISK;
#endif
}
+wxFileKind wxGetFileKind(FILE *fp)
+{
+#ifndef wxFILEKIND_STUB
+ return wxGetFileKind(fileno(fp));
+#else
+ (void)fp;
+ return wxFILE_KIND_DISK;
+#endif
+}
+
#ifdef __VISUALC__
#pragma warning(default:4706) // assignment within conditional expression
#endif // VC++
#ifdef __VISUALC__
#pragma warning(default:4706) // assignment within conditional expression
#endif // VC++