Index: samples/lineprocessor.cc |
diff --git a/samples/lineprocessor.cc b/samples/lineprocessor.cc |
index 40064ba19b1c7def11f75b10a48b2351a65ee801..c3ce03789c5e96e91602cf39d5e312682faa7a0d 100644 |
--- a/samples/lineprocessor.cc |
+++ b/samples/lineprocessor.cc |
@@ -25,9 +25,10 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-#include <v8.h> |
+#include <include/v8.h> |
-#include <v8-debug.h> |
+#include <include/libplatform/libplatform.h> |
+#include <include/v8-debug.h> |
#include <fcntl.h> |
#include <stdio.h> |
@@ -254,8 +255,12 @@ bool RunCppCycle(v8::Handle<v8::Script> script, |
int main(int argc, char* argv[]) { |
v8::V8::InitializeICU(); |
+ v8::Platform* platform = v8::platform::CreateDefaultPlatform(0); |
+ v8::V8::InitializePlatform(platform); |
int result = RunMain(argc, argv); |
v8::V8::Dispose(); |
+ v8::V8::ShutdownPlatform(); |
+ delete platform; |
return result; |
} |