Sync with 54a3597 in the Swift repository (#1428)

This only affects the Apple-platform implementation anyway.
diff --git a/Foundation/Data.swift b/Foundation/Data.swift
index 098c25e..8e01650 100644
--- a/Foundation/Data.swift
+++ b/Foundation/Data.swift
@@ -54,9 +54,6 @@
     }
 }
 
-@_silgen_name("__NSDataWriteToURL")
-internal func __NSDataWriteToURL(_ data: NSData, _ url: NSURL, _ options: UInt, _ error: NSErrorPointer) -> Bool
-    
 #endif
 
 public final class _DataStorage {
@@ -1417,9 +1414,9 @@
 #else
             if _shouldUseNonAtomicWriteReimplementation(options: options) {
                 var error: NSError? = nil
-                guard __NSDataWriteToURL($0, url as NSURL, options.rawValue, &error) else { throw error! }
+                guard __NSDataWriteToURL($0, url, options, &error) else { throw error! }
             } else {
-                try $0.write(to: url, options: WritingOptions(rawValue: options.rawValue))
+                try $0.write(to: url, options: options)
             }
 #endif
         }