aboutsummaryrefslogtreecommitdiff
path: root/sokol_fetch.h
diff options
context:
space:
mode:
Diffstat (limited to 'sokol_fetch.h')
-rw-r--r--sokol_fetch.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sokol_fetch.h b/sokol_fetch.h
index f94f5c82..2cc49312 100644
--- a/sokol_fetch.h
+++ b/sokol_fetch.h
@@ -1201,6 +1201,11 @@ inline sfetch_handle_t sfetch_send(const sfetch_request_t& request) { return sfe
#define _SFETCH_HAS_THREADS (1)
#endif
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable:4724) // potential mod by 0
+#endif
+
// ███████ ████████ ██████ ██ ██ ██████ ████████ ███████
// ██ ██ ██ ██ ██ ██ ██ ██ ██
// ███████ ██ ██████ ██ ██ ██ ██ ███████
@@ -2806,4 +2811,9 @@ SOKOL_API_IMPL void sfetch_cancel(sfetch_handle_t h) {
item->user.cancel = true;
}
}
+
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
#endif /* SOKOL_FETCH_IMPL */