Chromium Code Reviews| Index: base/base_api.h |
| =================================================================== |
| --- base/base_api.h (revision 79303) |
| +++ base/base_api.h (working copy) |
| @@ -6,16 +6,12 @@ |
| #define BASE_BASE_API_H_ |
| #pragma once |
| -#if !defined(BASE_IMPLEMENTATION) |
| -#define BASE_IMPLEMENTATION 0 |
| -#endif |
| - |
| #if defined(WIN32) && defined(BASE_DLL) |
| -#if BASE_IMPLEMENTATION |
| +#if defined(BASE_IMPLEMENTATION) |
| #define BASE_API __declspec(dllexport) |
| #else |
| #define BASE_API __declspec(dllimport) |
| -#endif |
| +#endif // defined(BASE_IMPLEMENTATION) |
|
wtc
2011/03/28 22:24:33
Nit: for short ifdef blocks, I would omit these co
rvargas (doing something else)
2011/03/28 22:36:23
Yes, I do too. But I think it adds clarity in this
|
| #else |
| #define BASE_API |
| #endif |