OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBKIT_MEDIA_CRYPTO_PPAPI_CDM_EXPORT_H_ |
| 6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_CDM_EXPORT_H_ |
| 7 |
| 8 // Define CDM_EXPORT so that functionality implemented by the CDM module |
| 9 // can be exported to consumers. |
| 10 |
| 11 #if defined(WIN32) |
| 12 |
| 13 #if defined(CDM_IMPLEMENTATION) |
| 14 #define CDM_EXPORT __declspec(dllexport) |
| 15 #else |
| 16 #define CDM_EXPORT __declspec(dllimport) |
| 17 #endif // defined(CDM_IMPLEMENTATION) |
| 18 |
| 19 #else // defined(WIN32) |
| 20 #if defined(CDM_IMPLEMENTATION) |
| 21 #define CDM_EXPORT __attribute__((visibility("default"))) |
| 22 #else |
| 23 #define CDM_EXPORT |
| 24 #endif |
| 25 #endif |
| 26 |
| 27 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CDM_EXPORT_H_ |
OLD | NEW |