]> code.delx.au - gnu-emacs/blobdiff - nt/inc/stdint.h
Merge from emacs-23; up to 2010-06-16T23:27:20Z!jay.p.belanger@gmail.com.
[gnu-emacs] / nt / inc / stdint.h
index ed4e26a68678339a90e30fa9629d3cd84e20d288..4af0346af2c346442132a1566df87ca0c9e6bda6 100644 (file)
@@ -28,6 +28,20 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    stdint.h is not available, e.g. Microsoft Visual Studio.  */
 
 typedef unsigned int uint32_t;
+#define INT32_MAX 2147483647
+/* "i64" is the non-standard suffix used by MSVC for 64-bit constants.  */
+#define INT64_MAX 9223372036854775807i64
+
+#ifdef _WIN64
+  typedef __int64 intptr_t;
+#define INTPTR_MAX INT64_MAX
+#else
+  typedef int intptr_t;
+#define INTPTR_MAX INT32_MAX
+#endif
+
+#define uintmax_t unsigned __int64
+#define PTRDIFF_MAX INTPTR_MAX
 
 #endif /* !__GNUC__ */