[build] Place 'extern "C"' before __attribute__, as required by gcc.

Change-Id: I8a7ad221221e8b31a3a23aa9345686d08ba14da5
Reviewed-on: https://dart-review.googlesource.com/53465
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Ryan Macnak 2018-05-02 22:14:27 +00:00 committed by commit-bot@chromium.org
parent 258c5172df
commit a1fbf62742

View file

@ -791,7 +791,7 @@ typedef struct {
* \return NULL if initialization is successful. Returns an error message
* otherwise. The caller is responsible for freeing the error message.
*/
DART_WARN_UNUSED_RESULT DART_EXPORT char* Dart_Initialize(
DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_Initialize(
Dart_InitializeParams* params);
/**
@ -800,7 +800,7 @@ DART_WARN_UNUSED_RESULT DART_EXPORT char* Dart_Initialize(
* \return NULL if cleanup is successful. Returns an error message otherwise.
* The caller is responsible for freeing the error message.
*/
DART_WARN_UNUSED_RESULT DART_EXPORT char* Dart_Cleanup();
DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_Cleanup();
/**
* Sets command line flags. Should be called before Dart_Initialize.
@ -811,7 +811,7 @@ DART_WARN_UNUSED_RESULT DART_EXPORT char* Dart_Cleanup();
* \return NULL if successful. Returns an error message otherwise.
* The caller is responsible for freeing the error message.
*/
DART_WARN_UNUSED_RESULT DART_EXPORT char* Dart_SetVMFlags(int argc,
DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_SetVMFlags(int argc,
const char** argv);
/**
@ -1084,7 +1084,7 @@ DART_EXPORT bool Dart_IsDart2Snapshot(const uint8_t* snapshot_buffer);
* \return NULL if successful. Returns an error message otherwise. The caller
* is responsible for freeing the error message.
*/
DART_WARN_UNUSED_RESULT DART_EXPORT char* Dart_IsolateMakeRunnable(
DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_IsolateMakeRunnable(
Dart_Isolate isolate);
/*