Index: runtime/vm/atomic_macos.cc |
diff --git a/runtime/bin/vmservice.h b/runtime/vm/atomic_macos.cc |
similarity index 54% |
copy from runtime/bin/vmservice.h |
copy to runtime/vm/atomic_macos.cc |
index 4dcf93f704aaf7e82fc4d54ab5dbd81d2c7ee64e..213ccf4e7f321590284e2f4a66a499b9e857d74f 100644 |
--- a/runtime/bin/vmservice.h |
+++ b/runtime/vm/atomic_macos.cc |
@@ -2,16 +2,19 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-#ifndef BIN_VMSERVICE_H_ |
-#define BIN_VMSERVICE_H_ |
+#include "platform/globals.h" |
+#if defined(TARGET_OS_MACOS) |
-#include "include/dart_api.h" |
+#include "vm/atomic.h" |
namespace dart { |
-namespace bin { |
-} // namespace bin |
+uintptr_t AtomicOperations::FetchAndIncrement(uintptr_t* p) { |
+ return __sync_fetch_and_add(p, 1); |
+} |
+ |
+ |
} // namespace dart |
-#endif // BIN_VMSERVICE_H_ |
+#endif // defined(TARGET_OS_MACOS) |