Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 CDM_CONTENT_DECRYPTION_MODULE_EXPORT_H_ | |
| 6 #define CDM_CONTENT_DECRYPTION_MODULE_EXPORT_H_ | |
|
xhwang
2016/12/16 01:06:55
This will be shared by cdm.h and cdm_ext.h.
| |
| 7 | |
| 8 // Define CDM_API so that functionality implemented by the CDM module | |
| 9 // can be exported to consumers. | |
| 10 #if defined(WIN32) | |
| 11 | |
| 12 #if defined(CDM_IMPLEMENTATION) | |
| 13 #define CDM_API __declspec(dllexport) | |
| 14 #else | |
| 15 #define CDM_API __declspec(dllimport) | |
| 16 #endif // defined(CDM_IMPLEMENTATION) | |
| 17 | |
| 18 #else // defined(WIN32) | |
| 19 #define CDM_API __attribute__((visibility("default"))) | |
| 20 #endif // defined(WIN32) | |
| 21 | |
| 22 #endif // CDM_CONTENT_DECRYPTION_MODULE_EXPORT_H_ | |
| OLD | NEW |