summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/link-dependency/mymalloc.c
blob: f80bc02a62682eaf5c01b47af0b950f49eef007b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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) {
  (void)size;
  return (void*)0xdeadbeef;
}