1 #include <stdlib.h> 2 3 // The windows ninja generator is expecting an import library to get generated, 4 // but it doesn't if there are no exports. 5 #ifdef _MSC_VER 6 __declspec(dllexport) void foo() {} 7 #endif 8 9 void *malloc(size_t size) { 10 (void)size; 11 return (void*)0xdeadbeef; 12 } 13