summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/win/linker-flags/nodefaultlib.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/gyp/test/win/linker-flags/nodefaultlib.cc')
-rw-r--r--third_party/python/gyp/test/win/linker-flags/nodefaultlib.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/python/gyp/test/win/linker-flags/nodefaultlib.cc b/third_party/python/gyp/test/win/linker-flags/nodefaultlib.cc
new file mode 100644
index 0000000000..24b6eca438
--- /dev/null
+++ b/third_party/python/gyp/test/win/linker-flags/nodefaultlib.cc
@@ -0,0 +1,13 @@
+// Copyright (c) 2012 Google Inc. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Include entry point function that's excluded by removing C runtime libraries.
+extern "C" void mainCRTStartup() {
+}
+
+// Still needed because the linker checks for existence of one of main, wmain,
+// WinMain, or wMain to offer informative diagnositics.
+int main() {
+ return 0;
+}