Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: include/v8.h

Issue 160556: linux: Don't force-export V8 symbols unless v8 is built as a shared library.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/1.2/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « SConstruct ('k') | include/v8-debug.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « SConstruct ('k') | include/v8-debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698