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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 #define V8EXPORT_INLINE | 78 #define V8EXPORT_INLINE |
79 #else | 79 #else |
80 #define V8EXPORT | 80 #define V8EXPORT |
81 #define V8EXPORT_INLINE | 81 #define V8EXPORT_INLINE |
82 #endif // BUILDING_V8_SHARED | 82 #endif // BUILDING_V8_SHARED |
83 | 83 |
84 #else // _WIN32 | 84 #else // _WIN32 |
85 | 85 |
86 #include <stdint.h> | 86 #include <stdint.h> |
87 | 87 |
88 // Setup for Linux shared library export. There is no need to destinguish | 88 // Setup for Linux shared library export. There is no need to distinguish |
89 // neither between building or using the V8 shared library nor between using | 89 // between building or using the V8 shared library, but we should not |
90 // the shared or static V8 library as there is on Windows. Therefore there is | 90 // export symbols when we are building a static library. |
91 // no checking of BUILDING_V8_SHARED and USING_V8_SHARED. | 91 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED) |
92 #if defined(__GNUC__) && (__GNUC__ >= 4) | |
93 #define V8EXPORT __attribute__ ((visibility("default"))) | 92 #define V8EXPORT __attribute__ ((visibility("default"))) |
94 #define V8EXPORT_INLINE __attribute__ ((visibility("default"))) | 93 #define V8EXPORT_INLINE __attribute__ ((visibility("default"))) |
95 #else // defined(__GNUC__) && (__GNUC__ >= 4) | 94 #else // defined(__GNUC__) && (__GNUC__ >= 4) |
96 #define V8EXPORT | 95 #define V8EXPORT |
97 #define V8EXPORT_INLINE | 96 #define V8EXPORT_INLINE |
98 #endif // defined(__GNUC__) && (__GNUC__ >= 4) | 97 #endif // defined(__GNUC__) && (__GNUC__ >= 4) |
99 | 98 |
100 #endif // _WIN32 | 99 #endif // _WIN32 |
101 | 100 |
102 /** | 101 /** |
(...skipping 2567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2670 | 2669 |
2671 } // namespace v8 | 2670 } // namespace v8 |
2672 | 2671 |
2673 | 2672 |
2674 #undef V8EXPORT | 2673 #undef V8EXPORT |
2675 #undef V8EXPORT_INLINE | 2674 #undef V8EXPORT_INLINE |
2676 #undef TYPE_CHECK | 2675 #undef TYPE_CHECK |
2677 | 2676 |
2678 | 2677 |
2679 #endif // V8_H_ | 2678 #endif // V8_H_ |
OLD | NEW |