summaryrefslogtreecommitdiff
path: root/src/inc-msvc
diff options
context:
space:
mode:
authorDwayne C. Litzenberger <dlitz@dlitz.net>2008-11-16 11:39:38 -0500
committerDwayne C. Litzenberger <dlitz@dlitz.net>2008-11-16 11:39:38 -0500
commit1af3ed1dd855258efa4fc277cc07980b3e9a4126 (patch)
tree8537ac08c6e0744d97e53865bfbd47e233bc5cff /src/inc-msvc
parent28587232cc5a14ec2d1cb6d49f2fcf5973b5e986 (diff)
downloadpycrypto-1af3ed1dd855258efa4fc277cc07980b3e9a4126.tar.gz
MSVC-specific fixes and workarounds
Diffstat (limited to 'src/inc-msvc')
-rw-r--r--src/inc-msvc/stdint.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/inc-msvc/stdint.h b/src/inc-msvc/stdint.h
new file mode 100644
index 0000000..e9266b7
--- /dev/null
+++ b/src/inc-msvc/stdint.h
@@ -0,0 +1,47 @@
+/*
+ * inc-msvc/stdint.h: Partial stdint.h for MSVC compiler
+ *
+ * =======================================================================
+ * Copyright (C) 2008 Dwayne C. Litzenberger <dlitz@dlitz.net>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * =======================================================================
+ */
+#ifndef PYCRYPTO_MSVC_STDINT_H
+#define PYCRYPTO_MSVC_STDINT_H
+
+typedef __int8 int8_t;
+typedef __int16 int16_t;
+typedef __int32 int32_t;
+typedef __int64 int64_t;
+
+typedef unsigned __int8 uint8_t;
+typedef unsigned __int16 uint16_t;
+typedef unsigned __int32 uint32_t;
+typedef unsigned __int64 uint64_t;
+
+/* Define the "inline" keyword */
+#ifndef inline
+# define inline __inline
+#endif /* inline */
+
+
+#endif /* PYCRYPTO_MSVC_STDINT_H */
+/* vim:set ts=4 sw=4 sts=4 expandtab: */