Chromium Code Reviews| Index: Source/platform/PlatformExport.h |
| diff --git a/Source/platform/PlatformExport.h b/Source/platform/PlatformExport.h |
| index 0b12508db206b498997016c1c363ac4862dba052..89c636fccc3249820d3107be0924aa4ddc84d405 100644 |
| --- a/Source/platform/PlatformExport.h |
| +++ b/Source/platform/PlatformExport.h |
| @@ -50,4 +50,15 @@ |
| #define PLATFORM_EXPORT |
| #endif |
| +#if defined(_MSC_VER) |
| +#define COMPILER_MSVC 1 |
|
jamesr
2013/10/21 18:20:09
if you're setting this just to use in the macro be
|
| +#endif |
| + |
| +#if defined(COMPILER_MSVC) |
| +#define NON_EXPORTED_BASE(code) MSVC_SUPPRESS_WARNING(4275) \ |
|
jamesr
2013/10/21 18:20:09
where does the definition of MSVC_SUPPRESS_WARNING
|
| + code |
| +#else // not MSVC |
| +#define NON_EXPORTED_BASE(code) code |
| +#endif // COMPILER_MSVC |
| + |
| #endif // PlatformExport_h |