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 | 80 #ifndef __STDC_CONSTANT_MACROS |
| 81 #define __STDC_CONSTANT_MACROS |
| 82 #endif |
81 #include <stdint.h> | 83 #include <stdint.h> |
82 | 84 |
83 // Setup for Linux shared library export. There is no need to destinguish | 85 // Setup for Linux shared library export. There is no need to destinguish |
84 // neither between building or using the V8 shared library nor between using | 86 // neither between building or using the V8 shared library nor between using |
85 // the shared or static V8 library as there is on Windows. Therefore there is | 87 // the shared or static V8 library as there is on Windows. Therefore there is |
86 // no checking of BUILDING_V8_SHARED and USING_V8_SHARED. | 88 // no checking of BUILDING_V8_SHARED and USING_V8_SHARED. |
87 #if defined(__GNUC__) && (__GNUC__ >= 4) | 89 #if defined(__GNUC__) && (__GNUC__ >= 4) |
88 #define V8EXPORT __attribute__ ((visibility("default"))) | 90 #define V8EXPORT __attribute__ ((visibility("default"))) |
89 #define V8EXPORT_INLINE __attribute__ ((visibility("default"))) | 91 #define V8EXPORT_INLINE __attribute__ ((visibility("default"))) |
90 #else // defined(__GNUC__) && (__GNUC__ >= 4) | 92 #else // defined(__GNUC__) && (__GNUC__ >= 4) |
(...skipping 2475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2566 | 2568 |
2567 } // namespace v8 | 2569 } // namespace v8 |
2568 | 2570 |
2569 | 2571 |
2570 #undef V8EXPORT | 2572 #undef V8EXPORT |
2571 #undef V8EXPORT_INLINE | 2573 #undef V8EXPORT_INLINE |
2572 #undef TYPE_CHECK | 2574 #undef TYPE_CHECK |
2573 | 2575 |
2574 | 2576 |
2575 #endif // V8_H_ | 2577 #endif // V8_H_ |
OLD | NEW |