Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc

Issue 11744010: [NaCl SDK] Change the kernel_wrap OS #ifdefs in nacl_mounts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc
diff --git a/native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc b/native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc
index 39e31123d0a768e949b4705f8786aae2babac944..12c8010830efdf3d1854da25e249f0643200f760 100644
--- a/native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc
+++ b/native_client_sdk/src/libraries/nacl_mounts/kernel_wrap_win.cc
@@ -3,6 +3,10 @@
* found in the LICENSE file.
*/
+// The entire file is wrapped in this #if. We do this so this .cc file can be
+// compiled, even on a non-Windows build.
+#if defined(WIN32)
+
#include "nacl_mounts/kernel_wrap.h"
#include <errno.h>
#include <fcntl.h>
@@ -216,3 +220,5 @@ int _write(int fd, const void* buf, size_t nbyte) {
}
EXTERN_C_END
+
+#endif // defined(WIN32)

Powered by Google App Engine
This is Rietveld 408576698