Chromium Code Reviews| Index: test/link-dependency/mymalloc.c |
| =================================================================== |
| --- test/link-dependency/mymalloc.c (revision 1864) |
| +++ test/link-dependency/mymalloc.c (working copy) |
| @@ -1,4 +1,11 @@ |
| #include <stdlib.h> |
| + |
| +// The windows ninja generator is expecting an import library to get generated, |
| +// but it doesn't if there are no exports. |
| +#ifdef _MSC_VER |
| +__declspec(dllexport) void foo() {} |
| +#endif |
| + |
| void *malloc(size_t size) { |
| return (void*)0xdeadbeef; |
| } |