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

Unified Diff: samples/shell.cc

Issue 7366004: Fixed: sample shell with shared lib fails to compile. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/shell.cc
diff --git a/samples/shell.cc b/samples/shell.cc
index 3c78ea4cb4366746cb24f0442fd34ea76220b9c1..f37e731f389d6ebffdf63f759ea4a51e227c1848 100644
--- a/samples/shell.cc
+++ b/samples/shell.cc
@@ -95,10 +95,12 @@ class SourceGroup {
begin_offset_(0),
end_offset_(0) { }
+#if !(defined(USING_V8_SHARED) || defined(V8_SHARED))
Yang 2011/07/14 09:36:27 Those semaphores are not defined when USING_V8_SHA
~SourceGroup() {
delete next_semaphore_;
delete done_semaphore_;
}
+#endif // USING_V8_SHARED
void Begin(char** argv, int offset) {
argv_ = const_cast<const char**>(argv);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698