summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/com32/lib/fread2.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/com32/lib/fread2.c')
-rw-r--r--contrib/syslinux-4.02/com32/lib/fread2.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/com32/lib/fread2.c b/contrib/syslinux-4.02/com32/lib/fread2.c
new file mode 100644
index 0000000..0062040
--- /dev/null
+++ b/contrib/syslinux-4.02/com32/lib/fread2.c
@@ -0,0 +1,13 @@
+/*
+ * fread2.c
+ *
+ * The actual fread() function as a non-inline
+ */
+
+#define __NO_FREAD_FWRITE_INLINES
+#include <stdio.h>
+
+size_t fread(void *ptr, size_t size, size_t nmemb, FILE * f)
+{
+ return _fread(ptr, size * nmemb, f) / size;
+}