Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: test/win/linker-flags/no-default-libs.cc

Issue 12256017: Remove default import library inheritance/configuration. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@lkgr
Patch Set: Rebase to head in preparation for landing. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/win/linker-flags/delay-load-dlls.gyp ('k') | test/win/linker-flags/no-default-libs.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 Google Inc. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Reference something in kernel32.dll. This will fail to link, verifying that
6 // GYP provides no default import library configuration.
7 // Note that we don't include Windows.h, as that will result in generating
8 // linker directives in the object file through #pragma comment(lib, ...).
9 typedef short BOOL;
10
11 extern "C" __declspec(dllimport)
12 BOOL CopyFileW(const wchar_t*, const wchar_t*, BOOL);
13
14
15 int main() {
16 CopyFileW(0, 0, 0); // kernel32
17 return 0;
18 }
OLDNEW
« no previous file with comments | « test/win/linker-flags/delay-load-dlls.gyp ('k') | test/win/linker-flags/no-default-libs.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698