X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d442cebf6863fc131f3fcf453039a70e6b014d11..03c1a9b9853f42909ab7039d4b8a7df98e34d250:/src/bindings/java/jmsg_file.cpp diff --git a/src/bindings/java/jmsg_file.cpp b/src/bindings/java/jmsg_file.cpp index 5b203d9b98..ff8dcba252 100644 --- a/src/bindings/java/jmsg_file.cpp +++ b/src/bindings/java/jmsg_file.cpp @@ -1,15 +1,14 @@ -/* Functions related to the java file API. */ +/* Java bindings of the file API. */ -/* Copyright (c) 2012-2014. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2012-2017. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "jmsg_file.h" -#include "jxbt_utilities.h" +#include "jxbt_utilities.hpp" -SG_BEGIN_DECL() +extern "C" { void jfile_bind(JNIEnv *env, jobject jfile, msg_file_t fd) { env->SetLongField(jfile, jfile_field_bind, reinterpret_cast(fd)); @@ -54,5 +53,4 @@ JNIEXPORT void JNICALL Java_org_simgrid_msg_File_close(JNIEnv *env, jobject jfil MSG_file_close(file); jfile_bind(env, jfile, nullptr); } - -SG_END_DECL() +}