OLD | NEW |
1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 PPAPI_C_PPP_H_ | 5 #ifndef PPAPI_C_PPP_H_ |
6 #define PPAPI_C_PPP_H_ | 6 #define PPAPI_C_PPP_H_ |
7 | 7 |
8 #include "ppapi/c/pp_module.h" | 8 #include "ppapi/c/pp_module.h" |
9 #include "ppapi/c/pp_stdint.h" | 9 #include "ppapi/c/pp_stdint.h" |
10 #include "ppapi/c/ppb.h" | 10 #include "ppapi/c/ppb.h" |
11 | 11 |
12 #if __GNUC__ >= 4 | 12 #if __GNUC__ >= 4 |
13 #define PP_EXPORT __attribute__ ((visibility("default"))) | 13 #define PP_EXPORT __attribute__ ((visibility("default"))) |
14 #elif defined(_MSC_VER) | 14 #elif defined(_MSC_VER) |
15 #define PP_EXPORT __declspec(dllexport) | 15 #define PP_EXPORT __declspec(dllexport) |
16 #endif | 16 #endif |
17 | 17 |
18 /** | 18 /** |
19 * @file | 19 * @file |
20 * This file defines three functions that your module must | 20 * This file defines three functions that your module must |
21 * implement to interact with the browser. | 21 * implement to interact with the browser. |
22 * | |
23 * {PENDING: undefine PP_EXPORT?} | |
24 */ | 22 */ |
25 | 23 |
| 24 // {PENDING: undefine PP_EXPORT?} |
| 25 |
| 26 |
26 /* We don't want name mangling for these external functions. We only need | 27 /* We don't want name mangling for these external functions. We only need |
27 * 'extern "C"' if we're compiling with a C++ compiler. | 28 * 'extern "C"' if we're compiling with a C++ compiler. |
28 */ | 29 */ |
29 #ifdef __cplusplus | 30 #ifdef __cplusplus |
30 extern "C" { | 31 extern "C" { |
31 #endif | 32 #endif |
32 | 33 |
33 /** | 34 /** |
34 * @addtogroup Functions | 35 * @addtogroup Functions |
35 * @{ | 36 * @{ |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 /** | 91 /** |
91 * @} | 92 * @} |
92 */ | 93 */ |
93 | 94 |
94 #ifdef __cplusplus | 95 #ifdef __cplusplus |
95 } /* extern "C" */ | 96 } /* extern "C" */ |
96 #endif | 97 #endif |
97 | 98 |
98 #endif /* PPAPI_C_PPP_H_ */ | 99 #endif /* PPAPI_C_PPP_H_ */ |
99 | 100 |
OLD | NEW |