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

Side by Side Diff: include/v8-debug.h

Issue 160634: Don't force-export V8 symbols unless v8 is built as a shared library. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | « include/v8.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #elif USING_V8_SHARED 48 #elif USING_V8_SHARED
49 #define EXPORT __declspec(dllimport) 49 #define EXPORT __declspec(dllimport)
50 #else 50 #else
51 #define EXPORT 51 #define EXPORT
52 #endif 52 #endif
53 53
54 #else // _WIN32 54 #else // _WIN32
55 55
56 // Setup for Linux shared library export. See v8.h in this directory for 56 // Setup for Linux shared library export. See v8.h in this directory for
57 // information on how to build/use V8 as shared library. 57 // information on how to build/use V8 as shared library.
58 #if defined(__GNUC__) && (__GNUC__ >= 4) 58 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED)
59 #define EXPORT __attribute__ ((visibility("default"))) 59 #define EXPORT __attribute__ ((visibility("default")))
60 #else // defined(__GNUC__) && (__GNUC__ >= 4) 60 #else // defined(__GNUC__) && (__GNUC__ >= 4)
61 #define EXPORT 61 #define EXPORT
62 #endif // defined(__GNUC__) && (__GNUC__ >= 4) 62 #endif // defined(__GNUC__) && (__GNUC__ >= 4)
63 63
64 #endif // _WIN32 64 #endif // _WIN32
65 65
66 66
67 /** 67 /**
68 * Debugger support for the V8 JavaScript engine. 68 * Debugger support for the V8 JavaScript engine.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 }; 241 };
242 242
243 243
244 } // namespace v8 244 } // namespace v8
245 245
246 246
247 #undef EXPORT 247 #undef EXPORT
248 248
249 249
250 #endif // V8_V8_DEBUG_H_ 250 #endif // V8_V8_DEBUG_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698