• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2013 Google Inc. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6 
7 /*
8  * This will fail to compile if TEST_DEFINE was propagated from sharedlib to
9  * staticlib.
10  */
11 #ifdef TEST_DEFINE
12 #error TEST_DEFINE is defined!
13 #endif
14 
15 #ifdef _WIN32
16 __declspec(dllimport)
17 #else
18 extern
19 #endif
20 int sharedLibFunc();
21 
staticLibFunc()22 int staticLibFunc() {
23   return sharedLibFunc();
24 }
25