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

Side by Side Diff: src/include/win/port_win.h

Issue 1163893003: Don't include <stdint.h> from within <machine/_types.h> (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « PRESUBMIT.py ('k') | src/trusted/service_runtime/include/bits/stat.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2008, Google Inc. 2 * Copyright 2008, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 /* conditional expression is constant */ 47 /* conditional expression is constant */
48 #pragma warning(disable : 4127) 48 #pragma warning(disable : 4127)
49 49
50 /* TODO: limit this include to files that really need it */ 50 /* TODO: limit this include to files that really need it */
51 #ifndef NOMINMAX 51 #ifndef NOMINMAX
52 #define NOMINMAX 52 #define NOMINMAX
53 #endif 53 #endif
54 #include <windows.h> 54 #include <windows.h>
55 55
56 /* types missing on Windows */ 56 /* types missing on Windows */
57 typedef signed char __int8_t;
58 typedef unsigned char __uint8_t;
59 typedef short __int16_t;
60 typedef unsigned short __uint16_t;
61 typedef int __int32_t;
62 typedef unsigned int __uint32_t;
63 typedef __int64 __int64_t;
64 typedef unsigned __int64 __uint64_t;
65
66 typedef __int8_t int8_t;
67 typedef __uint8_t uint8_t;
68 typedef __int16_t int16_t;
69 typedef __uint16_t uint16_t;
70 typedef __int32_t int32_t;
71 typedef __uint32_t uint32_t;
72 typedef __uint32_t u_int32_t;
73 typedef __int64_t int64_t;
74 typedef __uint64_t uint64_t;
75
57 typedef long off_t; 76 typedef long off_t;
58 typedef unsigned int uint32_t;
59 typedef int int32_t;
60 typedef unsigned char uint8_t;
61 typedef unsigned int u_int32_t;
62 typedef unsigned short __uint16_t;
63 typedef unsigned short uint16_t;
64 typedef short int16_t;
65 typedef int mode_t; 77 typedef int mode_t;
66 typedef long _off_t; 78 typedef long _off_t;
67 typedef long int __loff_t; 79 typedef long int __loff_t;
68 typedef signed char int8_t;
69 typedef unsigned long DWORD; 80 typedef unsigned long DWORD;
70 typedef long clock_t; 81 typedef long clock_t;
71 typedef __int64 int64_t;
72 typedef unsigned __int64 uint64_t;
73 82
74 #ifdef _WIN64 83 #ifdef _WIN64
75 typedef int64_t ssize_t; 84 typedef int64_t ssize_t;
76 #else 85 #else
77 typedef int32_t ssize_t; 86 typedef int32_t ssize_t;
78 #endif /* _WIN64 */ 87 #endif /* _WIN64 */
79 88
80 89
81 #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) 90 #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
82 /* 91 /*
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 #endif 156 #endif
148 #endif 157 #endif
149 158
150 /************************************************************/ 159 /************************************************************/
151 160
152 161
153 /* from linux/limits.h, via sys/param.h */ 162 /* from linux/limits.h, via sys/param.h */
154 #define PATH_MAX 4096 163 #define PATH_MAX 4096
155 164
156 #endif /* NATIVE_CLIENT_SRC_INCLUDE_WIN_PORT_WIN_H_ */ 165 #endif /* NATIVE_CLIENT_SRC_INCLUDE_WIN_PORT_WIN_H_ */
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | src/trusted/service_runtime/include/bits/stat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698