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

Side by Side Diff: tools/gn/example/hello_shared.h

Issue 966333006: tools/gn/example: Fix the usage of HELLO_SHARED_IMPLEMENTATION. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | tools/gn/example/hello_static.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef HELLO_SHARED_H_ 5 #ifndef TOOLS_GN_EXAMPLE_HELLO_SHARED_H_
6 #define HELLO_SHARED_H_ 6 #define TOOLS_GN_EXAMPLE_HELLO_SHARED_H_
7 7
8 #if defined(WIN32) 8 #if defined(WIN32)
9 9
10 #if defined(HELLO_SHARED_IMPLEMENTATION) 10 #if defined(HELLO_SHARED_IMPLEMENTATION)
11 #define HELLO_EXPORT __declspec(dllexport) 11 #define HELLO_EXPORT __declspec(dllexport)
12 #define HELLO_EXPORT_PRIVATE __declspec(dllexport) 12 #define HELLO_EXPORT_PRIVATE __declspec(dllexport)
13 #else 13 #else
14 #define HELLO_EXPORT __declspec(dllimport) 14 #define HELLO_EXPORT __declspec(dllimport)
15 #define HELLO_EXPORT_PRIVATE __declspec(dllimport) 15 #define HELLO_EXPORT_PRIVATE __declspec(dllimport)
16 #endif // defined(HELLO_SHARED_IMPLEMENTATION) 16 #endif // defined(HELLO_SHARED_IMPLEMENTATION)
17 17
18 #else 18 #else
19 19
20 #if defined(HELLO_IMPLEMENTATION) 20 #if defined(HELLO_SHARED_IMPLEMENTATION)
21 #define HELLO_EXPORT __attribute__((visibility("default"))) 21 #define HELLO_EXPORT __attribute__((visibility("default")))
22 #define HELLO_EXPORT_PRIVATE __attribute__((visibility("default"))) 22 #define HELLO_EXPORT_PRIVATE __attribute__((visibility("default")))
23 #else 23 #else
24 #define HELLO_EXPORT 24 #define HELLO_EXPORT
25 #define HELLO_EXPORT_PRIVATE 25 #define HELLO_EXPORT_PRIVATE
26 #endif // defined(HELLO_IMPLEMENTATION) 26 #endif // defined(HELLO_SHARED_IMPLEMENTATION)
27 27
28 #endif 28 #endif
29 29
30 HELLO_EXPORT const char* GetSharedText(); 30 HELLO_EXPORT const char* GetSharedText();
31 31
32 #endif // HELLO_SHARED_H_ 32 #endif // TOOLS_GN_EXAMPLE_HELLO_SHARED_H_
OLDNEW
« no previous file with comments | « no previous file | tools/gn/example/hello_static.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698