| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #elif USING_V8_SHARED | 43 #elif USING_V8_SHARED |
| 44 #define V8EXPORT __declspec(dllimport) | 44 #define V8EXPORT __declspec(dllimport) |
| 45 #else | 45 #else |
| 46 #define V8EXPORT | 46 #define V8EXPORT |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 #else // _WIN32 | 49 #else // _WIN32 |
| 50 | 50 |
| 51 // Setup for Linux shared library export. See v8.h in this directory for | 51 // Setup for Linux shared library export. See v8.h in this directory for |
| 52 // information on how to build/use V8 as shared library. | 52 // information on how to build/use V8 as shared library. |
| 53 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED) | 53 #if defined(__GNUC__) && ((__GNUC__ >= 4) || \ |
| 54 (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(V8_SHARED) |
| 54 #define V8EXPORT __attribute__ ((visibility("default"))) | 55 #define V8EXPORT __attribute__ ((visibility("default"))) |
| 55 #else // defined(__GNUC__) && (__GNUC__ >= 4) | 56 #else |
| 56 #define V8EXPORT | 57 #define V8EXPORT |
| 57 #endif // defined(__GNUC__) && (__GNUC__ >= 4) | 58 #endif |
| 58 | 59 |
| 59 #endif // _WIN32 | 60 #endif // _WIN32 |
| 60 | 61 |
| 61 | 62 |
| 62 /** | 63 /** |
| 63 * Testing support for the V8 JavaScript engine. | 64 * Testing support for the V8 JavaScript engine. |
| 64 */ | 65 */ |
| 65 namespace v8 { | 66 namespace v8 { |
| 66 | 67 |
| 67 class V8EXPORT Testing { | 68 class V8EXPORT Testing { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 | 98 |
| 98 } // namespace v8 | 99 } // namespace v8 |
| 99 | 100 |
| 100 | 101 |
| 101 #undef V8EXPORT | 102 #undef V8EXPORT |
| 102 | 103 |
| 103 | 104 |
| 104 #endif // V8_V8_TEST_H_ | 105 #endif // V8_V8_TEST_H_ |
| OLD | NEW |