{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1750061777,"commit_time":1750069745,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"6828009695a951195efbd6def3856feaa0e769fd","message":"windows: fixup `fopen()` in `CURLDEBUG` builds\n\nIntroduce an immutable `CURL_FOPEN()` macro to store the `fopen()`\nmapping on Windows. Then use that instead `(fopen)` from `memdebug.c`.\nIt makes CURLDEBUG builds use the correct `fopen` wrapper on Windows.\nThis macro is only defined on Windows, as of this patch.\n\nThis is necessary after cde81e4398f2944e60c73f38823dafa305a5a2f4,\nwhich no longer applies the default `fopen()` override to `memdebug.c`.\n\nAlso:\n- curl_setup.h: de-dupe, simplify Windows file I/O function overrides.\n- curl_memory.h: fix to reset `fopen` to `curlx_win32_fopen()` on\n  Windows. Before this patch it reset it to stock `fopen()`.\n\nFollow-up to cde81e4398f2944e60c73f38823dafa305a5a2f4 #17631\n\nCloses #16747\n","parents":["cde81e4398f2944e60c73f38823dafa305a5a2f4"],"tree_hash":"084f8303a10142d43f501310115d1f8026da7536"}