blob: 6e5e927f27a10f4ac3fcc6959ea7c95ec334a883 [file] [log] [blame]
#include "stdio_impl.h"
#undef stderr;
// Force stderr to adopt the memory address of |f|, an arbitrary and unused
// FILE. We are able to get away with this hack since we do not care about or
// use the value of stderr, and simply want to ensure that when a FILE* is
// passed as a parameter it is equal to the memory address of stderr.
hidden FILE __stderr_FILE = { 0 };
FILE *const stderr = &__stderr_FILE;