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

Unified Diff: compat/win/sys/types.h

Issue 793013002: win: Add compat header for sys/types.h (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years 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
« no previous file with comments | « compat/compat.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compat/win/sys/types.h
diff --git a/client/simulate_crash.h b/compat/win/sys/types.h
similarity index 68%
copy from client/simulate_crash.h
copy to compat/win/sys/types.h
index aa4625e2f2820198c8bbc0f1e41b5f4b9e9328ae..5038eb3354426ee008cd41427aa66a9590deaf19 100644
--- a/client/simulate_crash.h
+++ b/compat/win/sys/types.h
@@ -12,13 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef CRASHPAD_CLIENT_SIMULATE_CRASH_H_
-#define CRASHPAD_CLIENT_SIMULATE_CRASH_H_
+#ifndef CRASHPAD_COMPAT_WIN_SYS_TYPES_H_
+#define CRASHPAD_COMPAT_WIN_SYS_TYPES_H_
-#include "build/build_config.h"
+// This is intended to be roughly equivalent to #include_next.
+#include <../include/sys/types.h>
-#if defined(OS_MACOSX)
-#include "client/simulate_crash_mac.h"
+#ifdef _WIN64
+typedef __int64 ssize_t;
+#else
+typedef _W64 int ssize_t;
#endif
-#endif // CRASHPAD_CLIENT_SIMULATE_CRASH_H_
+#endif // CRASHPAD_COMPAT_WIN_SYS_TYPES_H_
Mark Mentovai 2014/12/10 19:33:03 There’s supposed to be an extra space between #end
scottmg 2014/12/10 19:39:24 Oops, done.
« no previous file with comments | « compat/compat.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698