| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 #ifdef BUILDING_V8_SHARED | 55 #ifdef BUILDING_V8_SHARED |
| 56 #define V8EXPORT __declspec(dllexport) | 56 #define V8EXPORT __declspec(dllexport) |
| 57 #elif USING_V8_SHARED | 57 #elif USING_V8_SHARED |
| 58 #define V8EXPORT __declspec(dllimport) | 58 #define V8EXPORT __declspec(dllimport) |
| 59 #else | 59 #else |
| 60 #define V8EXPORT | 60 #define V8EXPORT |
| 61 #endif // BUILDING_V8_SHARED | 61 #endif // BUILDING_V8_SHARED |
| 62 | 62 |
| 63 #else // _WIN32 | 63 #else // _WIN32 |
| 64 | 64 |
| 65 // Setup for Linux shared library export. There is no need to distinguish | 65 // Setup for Linux shared library export. |
| 66 // between building or using the V8 shared library, but we should not | |
| 67 // export symbols when we are building a static library. | |
| 68 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED) | 66 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED) |
| 67 #ifdef BUILDING_V8_SHARED |
| 69 #define V8EXPORT __attribute__ ((visibility("default"))) | 68 #define V8EXPORT __attribute__ ((visibility("default"))) |
| 69 #else |
| 70 #define V8EXPORT |
| 71 #endif |
| 70 #else // defined(__GNUC__) && (__GNUC__ >= 4) | 72 #else // defined(__GNUC__) && (__GNUC__ >= 4) |
| 71 #define V8EXPORT | 73 #define V8EXPORT |
| 72 #endif // defined(__GNUC__) && (__GNUC__ >= 4) | 74 #endif // defined(__GNUC__) && (__GNUC__ >= 4) |
| 73 | 75 |
| 74 #endif // _WIN32 | 76 #endif // _WIN32 |
| 75 | 77 |
| 76 /** | 78 /** |
| 77 * The v8 JavaScript engine. | 79 * The v8 JavaScript engine. |
| 78 */ | 80 */ |
| 79 namespace v8 { | 81 namespace v8 { |
| (...skipping 4392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4472 | 4474 |
| 4473 | 4475 |
| 4474 } // namespace v8 | 4476 } // namespace v8 |
| 4475 | 4477 |
| 4476 | 4478 |
| 4477 #undef V8EXPORT | 4479 #undef V8EXPORT |
| 4478 #undef TYPE_CHECK | 4480 #undef TYPE_CHECK |
| 4479 | 4481 |
| 4480 | 4482 |
| 4481 #endif // V8_H_ | 4483 #endif // V8_H_ |
| OLD | NEW |