Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 BASE_BASE_API_H_ | 5 #ifndef BASE_BASE_API_H_ |
| 6 #define BASE_BASE_API_H_ | 6 #define BASE_BASE_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(BASE_DLL) | 9 #if defined(BASE_DLL) |
| 10 #if defined(WIN32) | 10 #if defined(WIN32) |
| 11 | |
| 11 #if defined(BASE_IMPLEMENTATION) | 12 #if defined(BASE_IMPLEMENTATION) |
| 12 #define BASE_API __declspec(dllexport) | 13 #define BASE_API __declspec(dllexport) |
| 13 #else | 14 #else |
| 14 #define BASE_API __declspec(dllimport) | 15 #define BASE_API __declspec(dllimport) |
| 15 #endif // defined(BASE_IMPLEMENTATION) | 16 #endif // defined(BASE_IMPLEMENTATION) |
| 16 #else | 17 |
| 18 #else // defined(WIN32) | |
| 17 #define BASE_API __attribute__((visibility("default"))) | 19 #define BASE_API __attribute__((visibility("default"))) |
| 18 #endif // defined(WIN32) | 20 #endif |
| 19 #else | 21 |
|
wtc
2011/06/24 23:18:48
These blank lines don't work for me either, so ple
rvargas (doing something else)
2011/06/24 23:27:58
Actually the lines help me (although they look wei
wtc
2011/06/24 23:44:19
OK! :-)
I'm afraid that only indentation would wo
rvargas (doing something else)
2011/06/25 01:16:45
yes, indenting will be the most clear, but we don'
brettw
2011/06/30 21:17:33
We don't normally do the indenting. I think in thi
| |
| 22 #else // defined(BASE_DLL) | |
| 20 #define BASE_API | 23 #define BASE_API |
| 21 #endif | 24 #endif |
| 22 | 25 |
| 23 #endif // BASE_BASE_API_H_ | 26 #endif // BASE_BASE_API_H_ |
| OLD | NEW |