| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #define V8EXPORT_INLINE __declspec(dllexport) | 70 #define V8EXPORT_INLINE __declspec(dllexport) |
| 71 #elif USING_V8_SHARED | 71 #elif USING_V8_SHARED |
| 72 #define V8EXPORT __declspec(dllimport) | 72 #define V8EXPORT __declspec(dllimport) |
| 73 #define V8EXPORT_INLINE | 73 #define V8EXPORT_INLINE |
| 74 #else | 74 #else |
| 75 #define V8EXPORT | 75 #define V8EXPORT |
| 76 #define V8EXPORT_INLINE | 76 #define V8EXPORT_INLINE |
| 77 #endif // BUILDING_V8_SHARED | 77 #endif // BUILDING_V8_SHARED |
| 78 | 78 |
| 79 #else // _WIN32 | 79 #else // _WIN32 |
| 80 #ifndef __STDC_CONSTANT_MACROS | 80 |
| 81 #define __STDC_CONSTANT_MACROS | |
| 82 #endif | |
| 83 #include <stdint.h> | 81 #include <stdint.h> |
| 84 | 82 |
| 85 // Setup for Linux shared library export. There is no need to destinguish | 83 // Setup for Linux shared library export. There is no need to destinguish |
| 86 // neither between building or using the V8 shared library nor between using | 84 // neither between building or using the V8 shared library nor between using |
| 87 // the shared or static V8 library as there is on Windows. Therefore there is | 85 // the shared or static V8 library as there is on Windows. Therefore there is |
| 88 // no checking of BUILDING_V8_SHARED and USING_V8_SHARED. | 86 // no checking of BUILDING_V8_SHARED and USING_V8_SHARED. |
| 89 #if defined(__GNUC__) && (__GNUC__ >= 4) | 87 #if defined(__GNUC__) && (__GNUC__ >= 4) |
| 90 #define V8EXPORT __attribute__ ((visibility("default"))) | 88 #define V8EXPORT __attribute__ ((visibility("default"))) |
| 91 #define V8EXPORT_INLINE __attribute__ ((visibility("default"))) | 89 #define V8EXPORT_INLINE __attribute__ ((visibility("default"))) |
| 92 #else // defined(__GNUC__) && (__GNUC__ >= 4) | 90 #else // defined(__GNUC__) && (__GNUC__ >= 4) |
| (...skipping 2483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2576 | 2574 |
| 2577 } // namespace v8 | 2575 } // namespace v8 |
| 2578 | 2576 |
| 2579 | 2577 |
| 2580 #undef V8EXPORT | 2578 #undef V8EXPORT |
| 2581 #undef V8EXPORT_INLINE | 2579 #undef V8EXPORT_INLINE |
| 2582 #undef TYPE_CHECK | 2580 #undef TYPE_CHECK |
| 2583 | 2581 |
| 2584 | 2582 |
| 2585 #endif // V8_H_ | 2583 #endif // V8_H_ |
| OLD | NEW |